* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html, body { 
  background:#fff; 
  color:#0b0b0b; 
}

html { 
  scroll-behavior: smooth; 
}
    
body { 
  font-family: "Urbanist", sans-serif; 
}

/* Back arrow */
.back-home{
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,.14);
  color: #111;
  text-decoration: none;
  z-index: 120;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.back-home:hover{ 
  transform: translateY(-2px); 
  box-shadow: 0 12px 28px rgba(0,0,0,.18); 
  background:#fff; 
}

.back-home:active{ 
  transform: translateY(0); 
}

.material-symbols-rounded{
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  font-size: 15px; line-height: 1;
}

/* Intro  */
.Intro{
  position: fixed; 
  inset: 0; 
  background:#fff; 
  z-index: 9999;
  display: grid; 
  place-items: center;
}

.Intro .letters{ 
  position: relative; 
  width: 120px; 
  height: 120px; 
}

.Intro .letter{
  position:absolute; 
  top:50%; 
  transform:translateY(-50%);
  font-family:"Urbanist", sans-serif; 
  font-weight:300; 
  font-size:24px; 
  color:#111; 
  opacity:0;
}

.Intro .letter.m{ 
  left:20px; 
}

.Intro .letter.g{ 
  right:20px; 
}

.Intro.fadeout{ 
  transition: opacity 500ms ease, visibility 500ms ease; 
  opacity:0; 
  visibility:hidden; 
}


/* Viewport1 */

.lang-switch {
  position: fixed;
  top: 16px;
  right: 70px; 
  display: flex;
  gap: 10px;
  z-index: 130;
}

.lang-switch .lang-btn {
  border: 1px solid rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.lang-switch .lang-btn:hover { 
  transform: translateY(-1px); 
}


.lang-switch .lang-btn.is-active { 
  border-color: #111; 
  font-weight: 600; 
}


.hero{
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 40px 72px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.hero-title{
  justify-self: start;
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.01em;
  line-height: 1.05;
  display: flex; gap: 10px; align-items: baseline;
}

.hero-title .divider{ 
  opacity:100; 
  font-weight:300; 
}


.slideshow{
  position: relative;
  width: min(1024px, 100%);
  margin: 6px auto 0;
  aspect-ratio: 16 / 9;
  background: #e8eaed;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

.slideshow .slide{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(4px);
  transform: scale(1.02);
  transition: opacity 900ms ease, filter 900ms ease, transform 900ms ease;
  pointer-events: none;
}

.slideshow .slide.is-active{
  opacity: 1;
  filter: blur(0);
  animation: kburns 3600ms ease-out forwards;
}

@keyframes kburns{
  from { 
    transform: scale(1.02);
   }

  to   { 
    transform: scale(1.06); 
  }
}


.details-button{
  justify-self: center;
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  font-family: "Outfit", sans-serif;
  text-decoration: none; 
  color:#0b0b0b;
  border-radius: 999px; 
  padding: 10px 14px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}


.details-button:hover{ 
  transform: translateY(-2px); 
  box-shadow:0 12px 28px rgba(0,0,0,.16); 
  background:#fff; 
}

.details-button:active{ 
  transform: translateY(0); 
}


/* Responsive */
@media (max-width: 990px){
  .hero-title{ 
    font-size:22px; 
  }

  .details-button{ 
    font-size:14px; 
    padding: 8px 12px;
  }

  .material-symbols-rounded{ 
    font-size:20px; 
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20; 
  }

  .Intro .letter{ 
    font-size:22px; 
  }
}

@media (max-width: 745px){
  .hero-title{ 
    font-size:20px; 
  }

  .details-button{ 
    font-size:13px; 
    padding: 7px 11px; 
  }

  .material-symbols-rounded{ 
    font-size:18px; 
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 18; 
  }

  .Intro .letter{ 
    font-size:20px; 
  }
}

@media (max-width: 560px){
  .hero-title{ 
    font-size:18px; 
  }

  .details-button{ 
    font-size:12px; 
    padding: 6px 10px; 
  }

  .material-symbols-rounded{ 
    font-size:16px; 
    font-variation-settings: 'FILL' 0, 'wght' 350, 'GRAD' 0, 'opsz' 16; 
  }

  .Intro .letter{ 
    font-size:18px; }

}

@media (max-width: 400px){
  .hero-title{ 
    font-size:14px; 
  }

  .details-button{ 
    font-size:11px;
    padding: 5px 9px; 
  }

  .material-symbols-rounded{ 
    font-size:14px; 
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 14; 
  }

  .Intro .letter{ 
    font-size:16px; 
  }
}

@media (max-width: 350px){
  .hero-title{ 
    font-size:12px; 
  }

  .details-button{ 
    font-size:11px; 
    padding: 5px 9px; 
  }

  .material-symbols-rounded{ 
    font-size:12px; 
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 14; 
  }

  .Intro .letter{ 
    font-size:14px; 
  }
}

/* Viewport 2 */
.description{
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px 40px 90px;
  display: grid;
  place-items: center;
  min-height: 420px;
  position: relative;
  overflow: hidden;
}

.description p{
  max-width: 1000px;
  width: 100%;
  text-align: left;
  font-family: "Outfit", sans-serif;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.6;
  white-space: pre-wrap;
  margin: 0;
  position: relative;
  opacity: 0;
  filter: blur(6px);
  transition: opacity 1.2s ease, filter 1.2s ease;
}

.description p::after{
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateY(0%);
  z-index: 2;
  pointer-events: none;
}

.description.show-curtain p{
  opacity: 1;
  filter: blur(0);
}
.description.show-curtain p::after{
  animation: curtainDown 1.2s ease forwards;
}

@keyframes curtainDown{
  from { 
    transform: translateY(0%); 
  }

  to   { 
    transform: translateY(100%); 
  }
}

/* Responsive */
@media (max-width: 1030px){
  .description { 
    padding: 48px 32px 72px; 
  }

  .description p { 
    font-size: 18px; 
    line-height: 1.55; 
    max-width: 800px;
  }
}

@media (max-width: 835px){
  .description { 
    padding: 40px 28px 60px; 
  }

  .description p { 
    font-size: 16px; 
    line-height: 1.5; 
    max-width: 680px; 
  }
}

@media (max-width: 750px){
  .description { 
    padding: 36px 24px 56px; 
  }

  .description p { 
    font-size: 14px; 
    line-height: 1.5; 
    max-width: 600px; 
  }
}

@media (max-width: 655px){
  .description { 
    padding: 32px 20px 52px; 
  }

  .description p{
    font-size: 14px;
    line-height: 1.6;
    white-space: normal;
    text-wrap: pretty;
    hyphens: none;
    max-width: 58ch;
    word-break: normal;
    overflow-wrap: break-word;
  }
}

@media (max-width: 400px){
  .description { 
    padding: 28px 16px 44px; 
  }

  .description p{
    font-size: 13px;
    line-height: 1.6;
    width: min(58ch, 92vw);
    max-width: none;
    margin: 0 auto;
    white-space: normal;
    text-wrap: balance;
    hyphens: none;
    word-break: normal;
    overflow-wrap: break-word;
  }
}


@media (prefers-reduced-motion: reduce){
  .description p,
  .description p::after{
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

/* Viewport 3 */
#viewport3 .card{
  opacity: 0;
  transform: translateY(16px) scale(.985);
  filter: blur(6px);
  transition:
    opacity .55s ease,
    transform .55s cubic-bezier(.2,.7,.2,1),
    filter .55s ease,
    box-shadow .25s ease;
}

#viewport3.show .card.revealed{
  opacity: 1;
  transform: none;
  filter: none;
}

#viewport3 .frame{ 
  clip-path: none !important; 
}

#viewport3 .frame, 
#viewport3 .frame img{ 
  opacity: 1; 
  filter: none; 
  transform: none; 
}

.gallery4{
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 40px 90px;
}

.gallery4-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 32px;
}

.gallery4 .card .frame{
  position: relative;
  border-radius: 14px;
  background: #e8eaed;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  aspect-ratio: 16 / 10;
}

.gallery4 .card .frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (pointer:fine){
  #viewport3 .card:hover .frame{ 
    box-shadow: 0 16px 40px rgba(0,0,0,.18); 
  }
}


@media (prefers-reduced-motion: reduce){
  #viewport3 .card{ 
    transition: none !important; 
    opacity: 1 !important; 
    transform: none !important; 
    filter: none !important; 
  }
}

@media (max-width: 1100px){
  .gallery4{ 
    padding: clamp(36px, 6vw, 52px) 
    clamp(16px, 4vw, 32px) 
    clamp(56px, 7vw, 80px); 
  }
  
  .gallery4-grid{ 
    gap: clamp(16px, 2.2vw, 28px); 
  }
}

@media (max-width: 900px){
  .gallery4-grid{ 
    grid-template-columns: repeat(2, minmax(260px, 1fr)); 
  }
}

@media (max-width: 760px){
  .gallery4-grid{ 
    grid-template-columns: 1fr; 
    gap: 22px; 
  }
}

@media (max-width: 560px){
  .gallery4{ 
    padding: 36px 20px 56px; 
  }
  .gallery4 .card .frame{ 
    border-radius: 12px; 
    box-shadow: 0 8px 22px rgba(0,0,0,.10); 
  }
}

@media (max-width: 400px){
  .gallery4{ 
    padding: 32px 16px 48px; 
  }
  .gallery4 .card .frame{ 
    aspect-ratio: 16 / 11; 
    border-radius: 10px; 
  }
  .gallery4-grid{ 
    gap: 18px; 
  }
}

@media (hover: none){
  .gallery4 .card:hover .frame{ 
    box-shadow: 0 10px 28px rgba(0,0,0,.12); 
  }
}

@media (prefers-reduced-motion: reduce){
  #viewport3 .card{ 
    transition: none !important; 
  }
}

/*Selekcija teksta*/
::selection {
  background:#b2d4e0;
  color: #c33b27;
}
::-moz-selection {
  background: #b2d4e0;
  color: #c33b27;
}
