@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
    
  * {
      box-sizing:border-box;
    }
    
  body, html {
    height:100%;  
     overflow:hidden;
     background-color: #000;
   }

   a {
    text-decoration: none;
    color: #000;
   }

     a:hover {
    text-decoration: underline;
    color: #000;
   }

#cursor {
  position: fixed;
  z-index: 200;
  width: 20px;
  height: 20px;
  background-color: white;
  border: 1px solid black;
  border-radius: 50%;
  pointer-events: none;
    transform: translate(-50%, -50%);
  transition: transform 0.5s ease-out;
margin: 15px 15px 0 0;
}

  .section {
  position: absolute;
  width: 50%;
  height: 50%;
  cursor: pointer;
  transform: scale3d(1, 1, 1);
  will-change: transform, opacity, contents;
  transition-duration: 0.6s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
    
  /* Přidat na začátek CSS */
.visible {
  display: none;      
  }

.section.is-expanded .visible {
  display: block;      /* zobrazí se, když je sekce rozkliknutá */
  opacity: 0;
  animation: fadeIn 0.6s forwards 0.3s; /* jemné postupné zobrazení */
  
}

@keyframes fadeIn {
  to { opacity: 1; }
}  
    
.section:nth-child(1) {
  top: 0;
  left: 0;
  background: #f5f5f0;
  background-image: url("../images/aa.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
   -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
  filter: grayscale(100%);
  color: white;
}
.section:nth-child(2) {
  top: 0;
  left: 50%;
  background: #f5f5f0;
  background-image: url("../images/bb.jpg");
    background-repeat: no-repeat;
  background-size: cover;
   -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
  filter: grayscale(100%);
  color: white;
}
.section:nth-child(3) {
  top: 50%;
  left: 0;
  background: #f5f5f0;
  background-image: url("../images/cc.jpg");
  background-repeat: no-repeat;
  background-size: cover;
   -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
  filter: grayscale(100%);
  color: white;
}
.section:nth-child(4) {
  top: 50%;
  left: 50%;
  background: #f5f5f0;
  background-image: url("../images/dd.jpg");
  background-repeat: no-repeat;
  background-size: cover;
   -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
  filter: grayscale(100%);
  color: white;
 }
.section.is-expanded {
    top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  inset: 0;
  z-index: 100;
  width: 100%;
  height: 100%;
  cursor: auto;
  background-image: none;  
  overflow: auto; 
}

.has-expanded-item .section:not(.is-expanded) {
  transform: scale3d(0, 0, 0);
  opacity: 0;  
}

.close-section {
  position: absolute;
  z-index: 100;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  font-size: 4rem;
  line-height: 1;
  text-align: center;
  color: #000;
  opacity: 0;
  cursor: pointer;
  pointer-events: none;
  transition: opacity 0.1s linear;
  will-change: opacity;
}

.close-section:hover {
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);

}

.section.is-expanded .close-section {
  opacity: 1;
  pointer-events: auto;
  transition-duration: 0.2s;
  transition-delay: 0.6s;
}


.box {
  position: relative; 
  z-index: 2;
  height: 100vh;
color: #000000;
    padding: 8%;
    padding-top: 2%;
    overflow-y: auto;   

}

.section h1 {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
  color: black;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8); 
  z-index: 1;
  transition: background 0.5s ease;
}

.section:hover::before {
  background: rgba(255, 255, 255, 0); 
}

.section:hover h1 {
  color: #fff;
}

.section.is-expanded::before {
  background: rgba(255, 255, 255, 0); 
}

.section.is-expanded h1 {
color: #000;
text-shadow: 0px 0px 0px rgba(255,255,255,0.62);
}

.section.is-expanded h1 span { 
  background-color: #000;
  color: #fff;;
}

p {
    font-family: "Lato", sans-serif;
     line-height: 140%;
      font-size: clamp(1.25rem, 2.3vw, 6rem); 
      margin-bottom: 1rem;
      /* text-wrap: initial; */
      text-align: justify;
      hyphens: auto;
     }

  h1 {
  font-family: "Cormorant Garamond", serif;
  line-height: 125%;
  font-size: clamp(3rem, 6.5vw, 10rem);  
  margin-bottom: 3rem;
  color: white;
}

 h3 {
  font-family: "Lato", sans-serif;
  line-height: 125%;
  font-size: clamp(2.25rem, 2.5vw, 8rem);  
  margin-bottom: 2rem;
  font-weight: 900;
}
  
img {
    -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
  filter: grayscale(100%);
  max-width: 100%;
}

.flex {
   display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.flex div {
  width: 47%;
}

/* gallery */
.row {
  display: -ms-flexbox; /* IE10 */
  display: flex;
  -ms-flex-wrap: wrap; /* IE10 */
  flex-wrap: wrap;
  padding: 0 4px;
}

.column {
  -ms-flex: 25%; /* IE10 */
  flex: 25%;
  max-width: 25%;
  padding: 0 4px;
}

.column img {
  margin-top: 8px;
  vertical-align: middle;
  width: 100%;
   transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.column img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Lightbox overlay */
#lightbox {
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  animation: fadeIn 0.4s ease;
}

/* The enlarged image */
#lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  animation: zoomIn 0.4s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

/* Animations */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes zoomIn {
  from {transform: scale(0.8);}
  to {transform: scale(1);}
}

/* Close button */
#lightbox span {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

#lightbox span:hover {
  color: #ccc;
}


@media screen and (max-width: 800px) {

  .close-section {
  position: absolute;
  z-index: 100;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  font-size: 4rem;
  line-height: 1;
  text-align: center;
  color: #000;
  opacity: 0;
  cursor: pointer;
  pointer-events: none;
  transition: opacity 0.1s linear;
  will-change: opacity;
  background-color: #fff;
}

.flex {
   display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flex div {
 width: 100%;
}

  .column {
    -ms-flex: 50%;
    flex: 50%;
    max-width: 50%;
  }

}