.tjpopup,
.tjpopup *,
.tjpopup *::before,
.tjpopup *::after {
box-sizing: border-box;
}
.tjpopup {
position: fixed;
inset: 0;
z-index: 2147483000;
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
font-family: inherit;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
.tjpopup[hidden] {
display: none !important;
}
.tjpopup__overlay {
position: absolute;
inset: 0;
background: rgba(17, 17, 17, 0.62);
-webkit-backdrop-filter: blur(2px);
backdrop-filter: blur(2px);
}
.tjpopup__box {
position: relative;
width: 100%;
max-width: var(--tjp-max, 600px);
max-height: calc(100vh - 32px);
max-height: calc(100dvh - 32px);
overflow-x: hidden;
overflow-y: auto;
overscroll-behavior: contain;
background: var(--tjp-bg, #fff);
color: var(--tjp-text, #262626);
border-radius: 14px;
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), 0 4px 14px rgba(0, 0, 0, 0.12);
outline: none;
} .tjpopup .tjpopup__close {
position: absolute;
top: 10px;
right: 10px;
z-index: 5;
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
min-height: 0;
margin: 0;
padding: 0;
border: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.94);
color: #262626;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
cursor: pointer;
line-height: 1;
text-indent: 0;
transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.tjpopup .tjpopup__close:hover {
background: var(--tjp-accent, #e00);
color: #fff;
transform: rotate(90deg);
}
.tjpopup .tjpopup__close:focus-visible {
outline: 3px solid var(--tjp-accent, #e00);
outline-offset: 2px;
}
.tjpopup .tjpopup__close svg {
display: block;
width: 20px;
height: 20px;
} .tjpopup__media {
position: relative;
line-height: 0;
}
.tjpopup__imglink {
display: block;
line-height: 0;
}
.tjpopup .tjpopup__img {
display: block;
width: 100%;
max-width: 100%;
height: auto;
margin: 0;
border: 0;
border-radius: 0;
box-shadow: none;
} .tjpopup__body {
padding: 30px 32px 32px;
}
.tjpopup .tjpopup__title {
margin: 0 0 12px;
padding: 0;
color: inherit;
font-family: inherit;
font-size: clamp(1.3rem, 1.05rem + 1.2vw, 1.75rem);
font-weight: 700;
line-height: 1.2;
letter-spacing: normal;
text-transform: none;
}
.tjpopup__content {
font-size: 1rem;
line-height: 1.6;
}
.tjpopup__content p {
margin: 0 0 0.8em;
}
.tjpopup__content > :last-child {
margin-bottom: 0;
}
.tjpopup__content a {
color: var(--tjp-accent, #e00);
}
.tjpopup .tjpopup__btn {
display: inline-block;
margin-top: 18px;
padding: 13px 28px;
border-radius: 8px;
background: var(--tjp-accent, #e00);
color: var(--tjp-btn-text, #fff);
font-weight: 700;
line-height: 1.2;
text-decoration: none;
transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.tjpopup .tjpopup__btn:hover,
.tjpopup .tjpopup__btn:focus-visible {
color: var(--tjp-btn-text, #fff);
filter: brightness(1.08);
transform: translateY(-2px);
box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
html.tjpopup-lock,
html.tjpopup-lock body {
overflow: hidden !important;
} .tjpopup--image-only:not(.tjpopup--kutni) .tjpopup__box {
width: auto;
max-width: min(var(--tjp-max, 600px), 100%);
background: transparent;
overflow: hidden;
}
.tjpopup--image-only:not(.tjpopup--kutni) .tjpopup__img {
width: auto;
max-width: 100%;
max-height: calc(100vh - 32px);
max-height: calc(100dvh - 32px);
} .tjpopup--klasik.tjpopup--has-text .tjpopup__box {
border-top: 6px solid var(--tjp-accent, #e00);
}
.tjpopup--klasik.tjpopup--has-image.tjpopup--has-text .tjpopup__box {
border-top: 0;
}
.tjpopup--klasik.tjpopup--has-image.tjpopup--has-text .tjpopup__media {
border-bottom: 6px solid var(--tjp-accent, #e00);
}
.tjpopup--klasik.tjpopup--has-text .tjpopup__img {
max-height: 55vh;
object-fit: contain;
}
.tjpopup--klasik .tjpopup__body {
text-align: center;
} .tjpopup--podijeljeni.tjpopup--has-image.tjpopup--has-text .tjpopup__box {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
max-width: max(var(--tjp-max, 600px), 720px);
}
.tjpopup--podijeljeni.tjpopup--has-image.tjpopup--has-text .tjpopup__media {
display: flex;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.04);
}
.tjpopup--podijeljeni.tjpopup--has-image.tjpopup--has-text .tjpopup__imglink {
width: 100%;
}
.tjpopup--podijeljeni.tjpopup--has-text .tjpopup__body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
padding: 44px 40px;
border-left: 6px solid var(--tjp-accent, #e00);
}
.tjpopup--podijeljeni.tjpopup--no-image .tjpopup__body {
border-left: 0;
border-top: 6px solid var(--tjp-accent, #e00);
} .tjpopup--kutni {
inset: auto 20px 20px auto;
display: block;
width: min(380px, calc(100vw - 40px));
padding: 0;
pointer-events: none;
}
.tjpopup--kutni .tjpopup__box {
max-width: none;
max-height: calc(100vh - 40px);
max-height: calc(100dvh - 40px);
border-left: 5px solid var(--tjp-accent, #e00);
border-radius: 12px;
pointer-events: auto;
}
.tjpopup--kutni.tjpopup--image-only .tjpopup__box {
width: -moz-fit-content;
width: fit-content;
max-width: 100%;
margin-left: auto;
border-left: 0;
background: transparent;
overflow: hidden;
}
.tjpopup--kutni.tjpopup--image-only .tjpopup__img {
width: auto;
max-width: 100%;
}
.tjpopup--kutni .tjpopup__img {
max-height: 60vh;
object-fit: contain;
}
.tjpopup--kutni .tjpopup__body {
padding: 20px 22px 22px;
}
.tjpopup--kutni.tjpopup--no-image .tjpopup__body {
padding-right: 56px;
}
.tjpopup--kutni .tjpopup__title {
font-size: 1.2rem;
margin-bottom: 8px;
}
.tjpopup--kutni .tjpopup__content {
font-size: 0.95rem;
}
.tjpopup--kutni .tjpopup .tjpopup__btn,
.tjpopup--kutni .tjpopup__btn {
margin-top: 14px;
padding: 10px 20px;
}
.tjpopup--kutni .tjpopup__close {
top: 8px;
right: 8px;
width: 34px;
height: 34px;
} @media (max-width: 640px) {
.tjpopup {
padding: 12px;
}
.tjpopup__box {
max-height: calc(100vh - 24px);
max-height: calc(100dvh - 24px);
border-radius: 12px;
}
.tjpopup--image-only:not(.tjpopup--kutni) .tjpopup__img {
max-height: calc(100vh - 24px);
max-height: calc(100dvh - 24px);
}
.tjpopup__body {
padding: 24px 20px 24px;
}
.tjpopup--podijeljeni.tjpopup--has-image.tjpopup--has-text .tjpopup__box {
display: block;
max-width: 100%;
}
.tjpopup--podijeljeni.tjpopup--has-image.tjpopup--has-text .tjpopup__img {
max-height: 42vh;
object-fit: contain;
}
.tjpopup--podijeljeni.tjpopup--has-text .tjpopup__body {
padding: 24px 20px;
border-left: 0;
border-top: 6px solid var(--tjp-accent, #e00);
}
.tjpopup--klasik.tjpopup--has-text .tjpopup__img {
max-height: 45vh;
} .tjpopup--kutni {
inset: auto 0 0 0;
width: 100%;
padding: 0;
}
.tjpopup--kutni .tjpopup__box {
max-height: 75vh;
border-left: 0;
border-top: 5px solid var(--tjp-accent, #e00);
border-radius: 16px 16px 0 0;
padding-bottom: env(safe-area-inset-bottom, 0);
}
.tjpopup--kutni.tjpopup--image-only .tjpopup__box {
margin: 0 auto;
border-top: 0;
border-radius: 12px 12px 0 0;
}
.tjpopup .tjpopup__close {
width: 38px;
height: 38px;
}
} .tjp-anim-in {
animation-duration: var(--tjp-in-ms, 600ms);
animation-delay: var(--tjp-in-delay, 0ms);
animation-fill-mode: both;
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
.tjp-anim-out {
animation-duration: var(--tjp-out-ms, 400ms);
animation-fill-mode: both;
animation-timing-function: cubic-bezier(0.5, 0, 0.75, 0);
}
.tjpopup.is-open .tjpopup__overlay {
animation: tjp-in-fade var(--tjp-in-ms, 600ms) ease both;
}
.tjpopup.is-closing .tjpopup__overlay {
animation: tjp-out-fade var(--tjp-out-ms, 400ms) ease both;
} .tjp-in-fade        { animation-name: tjp-in-fade; animation-timing-function: ease; }
.tjp-in-zoom        { animation-name: tjp-in-zoom; }
.tjp-in-pop         { animation-name: tjp-in-pop; animation-timing-function: ease-out; }
.tjp-in-slide-up    { animation-name: tjp-in-slide-up; }
.tjp-in-slide-down  { animation-name: tjp-in-slide-down; }
.tjp-in-slide-left  { animation-name: tjp-in-slide-left; }
.tjp-in-slide-right { animation-name: tjp-in-slide-right; }
.tjp-in-drop        { animation-name: tjp-in-drop; animation-timing-function: ease-out; }
.tjp-in-flip        { animation-name: tjp-in-flip; }
.tjp-in-flip-x      { animation-name: tjp-in-flip-x; transform-origin: 50% 0; }
.tjp-in-swing       { animation-name: tjp-in-swing; transform-origin: 50% 0; animation-timing-function: ease-out; }
.tjp-in-spin        { animation-name: tjp-in-spin; }
.tjp-in-blur        { animation-name: tjp-in-blur; animation-timing-function: ease-out; }
.tjp-in-rubber      { animation-name: tjp-in-rubber; animation-timing-function: ease-out; }
.tjp-in-none        { animation: none; } .tjp-out-fade        { animation-name: tjp-out-fade; animation-timing-function: ease; }
.tjp-out-fade-down   { animation-name: tjp-out-fade-down; }
.tjp-out-zoom        { animation-name: tjp-out-zoom; }
.tjp-out-zoom-big    { animation-name: tjp-out-zoom-big; }
.tjp-out-slide-up    { animation-name: tjp-out-slide-up; }
.tjp-out-slide-down  { animation-name: tjp-out-slide-down; }
.tjp-out-slide-left  { animation-name: tjp-out-slide-left; }
.tjp-out-slide-right { animation-name: tjp-out-slide-right; }
.tjp-out-flip        { animation-name: tjp-out-flip; }
.tjp-out-spin        { animation-name: tjp-out-spin; }
.tjp-out-blur        { animation-name: tjp-out-blur; animation-timing-function: ease; }
.tjp-out-fall        { animation-name: tjp-out-fall; transform-origin: 0 0; animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
.tjp-out-none        { animation: none; opacity: 0; }
@keyframes tjp-in-fade        { from { opacity: 0; } to { opacity: 1; } }
@keyframes tjp-in-zoom        { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }
@keyframes tjp-in-pop {
0%   { opacity: 0; transform: scale(0.4); }
55%  { opacity: 1; transform: scale(1.08); }
75%  { transform: scale(0.96); }
90%  { transform: scale(1.02); }
100% { opacity: 1; transform: none; }
}
@keyframes tjp-in-slide-up    { from { opacity: 0; transform: translateY(90px); } to { opacity: 1; transform: none; } }
@keyframes tjp-in-slide-down  { from { opacity: 0; transform: translateY(-90px); } to { opacity: 1; transform: none; } }
@keyframes tjp-in-slide-left  { from { opacity: 0; transform: translateX(120px); } to { opacity: 1; transform: none; } }
@keyframes tjp-in-slide-right { from { opacity: 0; transform: translateX(-120px); } to { opacity: 1; transform: none; } }
@keyframes tjp-in-drop {
0%   { opacity: 0; transform: translateY(-110vh); }
50%  { opacity: 1; transform: translateY(24px); }
68%  { transform: translateY(-12px); }
84%  { transform: translateY(5px); }
100% { opacity: 1; transform: none; }
}
@keyframes tjp-in-flip        { from { opacity: 0; transform: perspective(1200px) rotateY(-90deg); } to { opacity: 1; transform: perspective(1200px) rotateY(0); } }
@keyframes tjp-in-flip-x      { from { opacity: 0; transform: perspective(1200px) rotateX(-80deg); } to { opacity: 1; transform: perspective(1200px) rotateX(0); } }
@keyframes tjp-in-swing {
0%   { opacity: 0; transform: perspective(900px) rotateX(-70deg); }
40%  { opacity: 1; transform: perspective(900px) rotateX(18deg); }
65%  { transform: perspective(900px) rotateX(-8deg); }
85%  { transform: perspective(900px) rotateX(3deg); }
100% { opacity: 1; transform: perspective(900px) rotateX(0); }
}
@keyframes tjp-in-spin        { from { opacity: 0; transform: rotate(-200deg) scale(0.2); } to { opacity: 1; transform: none; } }
@keyframes tjp-in-blur        { from { opacity: 0; filter: blur(24px); transform: scale(1.12); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes tjp-in-rubber {
0%   { opacity: 0; transform: scale(0.3); }
30%  { opacity: 1; transform: scale3d(1.22, 0.78, 1); }
42%  { transform: scale3d(0.8, 1.2, 1); }
54%  { transform: scale3d(1.12, 0.88, 1); }
68%  { transform: scale3d(0.96, 1.04, 1); }
80%  { transform: scale3d(1.03, 0.97, 1); }
100% { opacity: 1; transform: none; }
}
@keyframes tjp-out-fade        { from { opacity: 1; } to { opacity: 0; } }
@keyframes tjp-out-fade-down   { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(40px); } }
@keyframes tjp-out-zoom        { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(0.6); } }
@keyframes tjp-out-zoom-big    { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(1.3); } }
@keyframes tjp-out-slide-up    { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-120px); } }
@keyframes tjp-out-slide-down  { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(120px); } }
@keyframes tjp-out-slide-left  { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-160px); } }
@keyframes tjp-out-slide-right { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(160px); } }
@keyframes tjp-out-flip        { from { opacity: 1; transform: perspective(1200px) rotateY(0); } to { opacity: 0; transform: perspective(1200px) rotateY(90deg); } }
@keyframes tjp-out-spin        { from { opacity: 1; transform: none; } to { opacity: 0; transform: rotate(200deg) scale(0.2); } }
@keyframes tjp-out-blur        { from { opacity: 1; filter: blur(0); transform: none; } to { opacity: 0; filter: blur(24px); transform: scale(0.94); } }
@keyframes tjp-out-fall {
0%   { opacity: 1; transform: none; }
25%  { opacity: 1; transform: rotate(10deg); }
100% { opacity: 0; transform: translateY(110vh) rotate(28deg); }
} @media (prefers-reduced-motion: reduce) {
.tjp-anim-in {
animation-name: tjp-in-fade !important;
animation-duration: 200ms !important;
}
.tjp-anim-out {
animation-name: tjp-out-fade !important;
animation-duration: 150ms !important;
}
.tjpopup .tjpopup__close:hover {
transform: none;
}
}