html{
   background-image: url(images/website_background.jpg);
   background-size: 100%;
   background-attachment: fixed;
}

.grid-container {
display: grid;
grid-template-columns: (3, 1fr);
gap: 16px;
height: 750px;
row-gap: 40px;  
grid-template-areas:
"1 2 3";
background-color: blue;
}

.grid-container img {
  width: 100%;
  aspect-ratio: 1 / 1; /* Forces uniform squares (or use a fixed height like 250px) */
  object-fit: cover; /* Crops images cleanly to fill the box without stretching */
  display: block; /* Removes tiny whitespace gaps beneath images */
  border-radius: 8px; /* Optional rounded corners */
}

.top-bar {
  display: flex; 
  justify-content: space-between;
  color: white;
  padding: 15px 0;
  padding-left: 15px;
  padding-right: 15px;
}


h2{
    font-size: 35px;
    padding-top: 0px;
    color: rgb(255, 67, 136);
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif
}

h3{
    color: rgb(255, 255, 255);
    padding-top: 20px;
     font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif
}

a,
a:visited,
a:hover,
a:active {
  color: #ffffff;
}
a{
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: rgb(255, 67, 136);
}

.gallery2 {
display: grid;
gap: 2.5rem;
padding: 1rem 3rem;
grid-template-columns: repeat(6, 1fr);
grid-auto-rows: minmax(5em, auto);
align-items:start;
}

.gallery2 div:nth-child(1) { grid-column: 1/4; grid-row: 2; }
.gallery2 div:nth-child(2) { grid-column: 2/4; grid-row: 1; }
.gallery2 div:nth-child(3) { grid-column: 4/6; grid-row: 2; }
.gallery2 div:nth-child(4) { grid-column: 2/5; grid-row: 3; }
.gallery2 div:nth-child(5) { grid-column: 5/7; grid-row: 3; }
.gallery2 div:nth-child(6) { grid-column: 1/4; grid-row: 4; }
.gallery2 div:nth-child(7) { grid-column: 2/5; grid-row: 5; }
.gallery2 div:nth-child(8) { grid-column: 2/6; grid-row: 6; }
.gallery2 div:nth-child(9) { grid-column: 5/7; grid-row: 5; }
.gallery2 div:nth-child(10) { grid-column: 4/6; grid-row: 7; }
.gallery2 div:nth-child(11) { grid-column: 1/4; grid-row: 8; }
.gallery2 div:nth-child(12) { grid-column: 4/7; grid-row: 8; }
.gallery2 div:nth-child(14) { grid-column: 5/7; grid-row: 9; }
.gallery2 div:nth-child(13) { grid-column: 2/5; grid-row: 10; }
.gallery2 div:nth-child(15) { grid-column: 5/7; grid-row: 10; }
.gallery2 div:nth-child(16) { grid-column: 4/7; grid-row: 11; }
.gallery2 div:nth-child(17) { grid-column: 3/6; grid-row: 12; }
.gallery2 div:nth-child(18) { grid-column: 1/3; grid-row: 12; }
.gallery2 div:nth-child(19) { grid-column: 5/7; grid-row: 13; }
.gallery2 div:nth-child(20) { grid-column: 1/4; grid-row: 14; }
.gallery2 div:nth-child(21) { grid-column: 4/7; grid-row: 15; }
.gallery2 div:nth-child(22) { grid-column: 1/3; grid-row: 15; }


.gallery3 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor:alias;
  transition: transform 0.2s ease;
  border: none;      
  padding: 0;      
  box-shadow: none;
}

.gallery3 {
display: grid;
gap: 2.5rem;
padding: 1rem 3rem;
grid-template-columns: repeat(6, 1fr);
grid-auto-rows: minmax(5em, auto);
align-items:start;
}

.gallery3 div:nth-child(1) { grid-column: 1/3; grid-row: 1; }
.gallery3 div:nth-child(2) { grid-column: 3/5; grid-row: 1; }
.gallery3 div:nth-child(3) { grid-column: 5/7; grid-row: 1; }

.gallery3 img:hover {
  transform: scale(1.02);
}

.gallery2 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  transition: transform 0.2s ease;
  border: 12px solid #ffffff;
}

.gallery2 img,
.gallery2 video {
  width: 100%;
  height: auto;
  display: block;
  border: 12px solid #ffffff;
  box-sizing: border-box;
  
}

.gallery2 video:hover {
  transform: scale(1.02);
}

.gallery2 img:hover {
  transform: scale(1.02);
}

#photo-lightbox {
  border: none;
  padding: 0;
  margin: auto; /* Centers the dialog cleanly */
  background: transparent;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
}

#photo-lightbox::backdrop {
  background: rgba(236, 148, 194, 0.85);
 
}

#lightbox-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 90vw;  /* Leaves 5vw breathing room on left and right */
  max-height: 82vh; /* Leaves room at top and bottom for caption and close button */
  object-fit: contain; /* Guarantees the entire uncropped photo stays visible */

}

#lightbox-caption {
  color:rgb(226, 255, 63);
  margin-top: 0.75rem;
  font-family:Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.95rem;
  text-align: center;
}

#close-lightbox {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: rgb(255, 63, 172);
}

#close-lightbox img {
  width: 80px;  /* Adjust to your preferred icon width */
  height: 80px; /* Adjust to your preferred icon height */
  object-fit: contain;
  display: block;
  border: none;
  box-shadow: none;
  pointer-events: none;
}
#close-lightbox:focus {
outline: none;
}

#lightbox-img,
#lightbox-video {
  max-width: 90vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  box-sizing: border-box;
}

#lightbox-img[hidden],
#lightbox-video[hidden] {
  display: none;
}

.back-btn {
    position: fixed;
  top: 1.5rem;   /* Distance from the top edge of the screen */
  left: 2rem;    /* Distance from the left edge of the screen */
  z-index: 1000;
  display: inline-block;
  padding: 10px 10px;
  background-color: #345134;
  color: #ff8dba;
  text-decoration: none;
  border-radius: 5px;
  font-family: sans-serif;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.back-btn:hover {
  background-color: #dbff71;
}

.link-container {
  display: flex;
  justify-content: center; /* Centers the link and image horizontally */
  width: 100%;
}
.photo-link img {
  width: 300px; /* Adjust as needed */
  transition: filter 0.3s ease;
}
  .photo-link:hover img {
  filter:hue-rotate(290deg)
  }

#photo-lightbox[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
}

#photo-lightbox[open]:has(.lightbox-stage) {
  flex-direction: row;
  gap: 1.5rem;
}

.lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#slide-counter {
  color: #ff408c;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.8rem;
}

.nav-arrow {
  background: transparent;
  border: none;
  color: #ff408c;
  font-size: 2rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-arrow:hover {
  opacity: 0.6;
  transform: scale(1.1);
}

.nav-arrow[hidden] {
  display: none;
}

p.small {
  line-height: 1.5;
   width: 300px;
   padding-left: 50px;
}

.split-section {
  display: grid;
  grid-template-columns: 3fr 1fr; /* 75% left column, 25% right column */
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.split-text {
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 3rem;
}

.split-image img {
  width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
  padding-right: 3rem;
}

@media (max-width: 500px) {
  .split-section {
    grid-template-columns: 1fr;
  }
}

p.smaller {
  line-height: 1.5;
   width: 300px;
   padding-left: 50px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h4{
    font-size: 18px;
    padding-top: 0px;
    color: rgb(255, 67, 136);
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif
}

.group-caption {
  margin: 1.5rem 0 0 0; /* Space between the white border and the words */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  color: #fffffe;
  text-align: center;    /* Change to 'left' if you want flush-left labels */
  cursor: pointer;
}
