@import url("global.css");

/* =======================================
   DESKTOP-FIRST GALLERY STYLES
   ======================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  background-color: #FFFAEC; 
  font-family: myFirstFont;
}

/* MAIN CONTENT: if wrapped in <main class=\"gallery\">, expand to fill leftover space */
.gallery {
  flex: 1; 
  padding-top: 5vw;
  padding-bottom: 5vw;

}

/* Container (70% wide, centered) */
.container {
  width: 55%;
  margin: 0 auto; /* center horizontally */
  padding: 0;
}



/* MASONRY GRID CONTAINER */
.grid {
  position: relative; /* cleared float approach */
  padding-left: 25px;

}
.grid::after {
  content: '';
  display: block;
  clear: both;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   3 Columns for DESKTOP
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.grid-sizer,
.grid-item {
  width: 29%; 
}

.grid-item {
  margin-bottom: 20px;  

}

.grid-item img {
  display: block;
  width: 100%;
  height: auto;
}



.gallery-intro {
  text-align: center;
  margin-bottom: 3rem;
  padding-top: 2rem; 
}

.page-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-description {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
  color: #444;
}



@media (max-width: 768px) {
  .grid-sizer,
  .grid-item {
    width: 40%; /* ~2 columns now */
  }

  /* Container (70% wide, centered) */
.container {
  width: 90%;
  margin: 0 auto; /* center horizontally */
  padding: 0;
}

}


@media (max-width: 1100px) and (min-width: 768px) {
  .container {
    width: 90%;
    margin: 0 auto; /* center horizontally */
    padding: 0;
  }
}



body.dim-others {
  position: relative;
}

body.dim-others::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4); /* 60% black overlay */
  z-index: 999;  /* below the .focused item’s z-index */
  pointer-events: none;
  transition: opacity 0.6s ease;
}

/* 2) Focused .grid-item floats above the overlay and is slightly bigger */
.grid-item.focused {
  position: relative;
  z-index: 1000; /* above the overlay's 999 */
  transform: scale(1.05); /* enlarge the item */
}

/* If you want to smoothly transform size & position, 
   add transitions to .grid-item or .grid-item img */
.grid-item {
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}


.modal-overlay {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #fff;
  max-width: 500px;
  margin: 50px auto;
  padding: 2rem;
  position: relative;
  top: 20vh; /* push content down from top */
  text-align: center; /* center the content inside the modal */
}

.modal-content ul {
  list-style-type: none; /* Remove bullet points from the list */
  padding: 0;
}

.modal-content li {
  margin: 20px 0; /* Add spacing between links */
}

.modal-content a {
  color: #337dcc; /* Always show the link in blue */
  text-decoration: none; /* Remove the underline */
  font-size: 1.1rem;
  transition: color 0.3s ease, transform 0.2s ease; /* Smooth hover transition */ 
}

.modal-content a:hover {
  color: #0056b3; /* Darker blue when hovered */
  transform: translateY(-2px); /* Slightly raise the link on hover for interaction feedback */
}
.modal-close {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.links-trigger {
  font-size: 1rem;
  cursor: pointer;
  margin-left: 0.5rem; /* small gap after the heading */
  color: #0056b3;      
  text-decoration: underline; /* or however you want to style it */
}


.links-trigger:hover {
  color: #003978;      /* darker shade on hover */
}



