body
{
  background: #222;
  font-family: sans-serif;
  color: #ccc;
}
button
{
  background: transparent;
  font-size: 1rem;
  border: solid 0.25rem #00A79D;
  border-radius: 1rem;
  padding: 0.5rem;
  color: #00a79d;
  margin: 0 0.5rem;
}
button:hover
{
  background: black;
  transition: all 0.7s ease-in-out;
}
#container
{
width: 100vw;
margin: 0 auto;
}
.darkbg
{
background: #000;
transition: 3s background;
}
#container .cell {
  margin: 0.25%;
}
#container .cell img:hover {
  opacity: 0.8;
  cursor: pointer;
}

.dynamic-content {
    display:none;
}
@media only screen 
and (max-width : 767px) {
  
  /* 2 columns for phones */
  #container .cell .caption {
    margin: 5% 0 10%;
    font-size: 1.5rem;
    width: 100vw;
    text-align: center;
  }
 .cell
  {
    width: 49%;
  }
  .photo .small-image { display: block;width: 100%;margin: 0 -3%; }
  .photo.large .big-image { display: block;margin: 0 -4.5% }
  .cell .caption
  {
    width: 100vw;
  }
}

@media screen and (min-width: 768px) {
  /* 3 columns for larger screens */
  #container .cell .caption {
  margin: .5rem 0 10%;
  font-size: 1.5rem;
  text-align: center;
  color: #aaa;
  width: 100vw;
}
  .cell
  {
    width: 32.8%;
    max-width: 500px;
    margin: 0.25rem;
  }
  .photo { 
    width: 48.9%;
    float: left;
    border-radius: 1rem;
    }

.photo .small-image { display: block;width: 100%; }
}

.big-image
{
  width:100vw;
  height:80vh;
  transition: all 2s;
  z-index: 2;

}


.photo.large {
  width: auto;
  z-index: 3;
  clear: both;
}

.photo.large .small-image,
.photo .big-image { display: none; }

.photo.large .big-image { display: block; }

.photo img {
  display: block;
  max-width:100%;
  height:auto;
  max-height:100%;
  border-radius: 0.5rem;
  margin: 0 auto;
}

.photo .loading {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10;
  background: hsla( 0, 0%, 100%, 0.7 );
}

.photo .loading span {
  position: absolute;
  left: 50%;
  top: 50%;
}

.photo .loading img {
  width: auto;
  position: absolute;
  left: -16px;
  top: -16px;
}

/* Start: Recommended Isotope styles */

/**** Isotope Filtering ****/

.isotope-item {
  z-index: 2;
}

.isotope-hidden.isotope-item {
  pointer-events: none;
  z-index: 1;
}

/**** Isotope CSS3 transitions ****/

.isotope,
.isotope .isotope-item {
  -webkit-transition-duration: 0.8s;
     -moz-transition-duration: 0.8s;
          transition-duration: 0.8s;
           transition: width 0.4s, height 0.4s;
}

.isotope {
  -webkit-transition-property: height, width;
     -moz-transition-property: height, width;
          transition-property: height, width;
}

.isotope .isotope-item {
  -webkit-transition-property: -webkit-transform, opacity;
     -moz-transition-property:    -moz-transform, opacity;
          transition-property:         transform, opacity;
}

/**** disabling Isotope CSS3 transitions ****/

.isotope.no-transition,
.isotope.no-transition .isotope-item,
.isotope .isotope-item.no-transition {
  -webkit-transition-duration: 0s;
     -moz-transition-duration: 0s;
          transition-duration: 0s;
}

/* End: Recommended Isotope styles */

/* ======================================================
   LIGHTBOX
   ====================================================== */

body.lb-open { overflow: hidden; }

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
#lightbox.open {
  opacity: 1;
  visibility: visible;
}

#lb-inner {
  max-width: 1024px;
  width: 82vw;
  flex-shrink: 1;
}

#lb-img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}
#lb-img.loaded { opacity: 1; }

#lb-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.25rem 0;
  gap: 1rem;
}
#lb-title {
  color: #bbb;
  font-size: 0.9rem;
}
.lb-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

/* ── Close button ── */
#lb-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: rgba(25, 25, 25, 0.85);
  border: 1px solid #444;
  border-radius: 50%;
  color: #aaa;
  font-size: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, color 0.2s, background 0.2s;
  z-index: 10;
}
#lightbox.open #lb-close {
  opacity: 0.6;
  pointer-events: auto;
}
#lb-close:hover {
  opacity: 1 !important;
  color: #fff;
  background: #333;
  border-color: #555;
}

/* ── Prev / Next arrows ── */
#lb-prev,
#lb-next {
  background: rgba(25, 25, 25, 0.75);
  border: 1px solid #444;
  border-radius: 50%;
  color: #bbb;
  font-size: 1.9rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, color 0.2s, background 0.2s, border-color 0.2s;
}

/* Show arrows when hovering anywhere over the open lightbox */
#lightbox.open:hover #lb-prev:not(.lb-edge),
#lightbox.open:hover #lb-next:not(.lb-edge) {
  opacity: 1;
  pointer-events: auto;
}

#lb-prev:hover,
#lb-next:hover {
  color: #00A79D;
  border-color: #00A79D;
  background: rgba(0, 167, 157, 0.15);
}

/* At first/last photo — keep them invisible and non-clickable */
#lb-prev.lb-edge,
#lb-next.lb-edge {
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 600px) {
  #lb-inner { width: 92vw; }
  #lb-prev, #lb-next { width: 2.4rem; height: 2.4rem; font-size: 1.5rem; }
  #lb-caption { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}


/* ======================================================
   NAVIGATION
   ====================================================== */

#main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2rem;
  background: rgba(18, 18, 18, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #2e2e2e;
}

.nav-brand {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.nav-brand span {
  color: #00A79D;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.1rem;
}

.nav-links a {
  display: block;
  padding: 0.45rem 0.9rem;
  color: #999;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border-radius: 0.5rem;
  transition: color 0.25s, background 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #00A79D;
  background: rgba(0, 167, 157, 0.12);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 0.4rem;
  margin: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #bbb;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 767px) {
  #main-nav {
    padding: 0.9rem 1.25rem;
    position: relative;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(18, 18, 18, 0.98);
    padding: 0.75rem 1rem 1rem;
    border-bottom: 1px solid #2e2e2e;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.7rem 0.75rem;
    font-size: 1rem;
  }
}

/* ======================================================
   FOOTER
   ====================================================== */

#main-footer {
  margin-top: 4rem;
  background: #1a1a1a;
  border-top: 1px solid #2e2e2e;
  padding: 3rem 2rem 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
}

.footer-brand h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem;
  letter-spacing: 0.04em;
}

.footer-brand h3 span {
  color: #00A79D;
}

.footer-brand p {
  color: #777;
  font-size: 0.875rem;
  line-height: 1.65;
  margin: 0;
  max-width: 30ch;
}

.footer-links h4,
.footer-social h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #00A79D;
  margin: 0 0 0.9rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-links a {
  color: #777;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.25s;
}

.footer-links a:hover,
.footer-links a.active {
  color: #00A79D;
}

.footer-social {
  display: flex;
  flex-direction: column;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.social-links a {
  color: #777;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.25s;
}

.social-links a:hover {
  color: #00A79D;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid #252525;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  color: #555;
  font-size: 0.78rem;
  margin: 0;
}

.footer-bottom a {
  color: #00A79D;
  text-decoration: none;
  transition: opacity 0.25s;
}

.footer-bottom a:hover {
  opacity: 0.8;
}

@media (max-width: 767px) {
  #main-footer {
    padding: 2.5rem 1.25rem 1.25rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}