html,
body {
  padding: 0;
  margin: 0;
  scroll-behavior: smooth;
  font-family: "Roboto", sans-serif;
}

body * {
  transition: 0.3s;
}

/* Wrapper styles */
.img-wrapper {
  background-color: var(--secondaryColor);
  border: 1px solid var(--borderColor);
  border-radius: 5px 5px 0 0;
  box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "nav-wrapper nav-wrapper"
    "left-column right-column";
}

/* Image gallery container */
.image-gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.image-gallery-container .images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.image-gallery-container .images .image {
  height: 190px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.image-gallery-container .images img {
  width: 100%;
  height: auto;
  transition: transform 0.2s ease-in-out;
}

.image-gallery-container .images .title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 10px;
  font-size: 14px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.image-gallery-container .images .image:hover .title {
  opacity: 1;
}

/* Lightbox styling */
.lightbox {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  height: 100%;
  background-color: rgba(21, 32, 43, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  /* overflow: auto; */
}

.lightbox-content img {
  max-width: none;
  max-height: none;
  width: 100%;
  height: 90vh;
  display: block;
  /* object-fit: contain; */
}

.lightbox img.zoomed {
  transform: scale(2);
}

/* previous and next buttons */
.lightbox .prev-btn,
.lightbox .next-btn {
  background: var(--buttonColor);
  border: none;
  border-radius: 8px;
  padding: 15px 12px;
  color: var(--secondaryColor);
  font-size: 16px;
  cursor: pointer;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  text-decoration: none;
  z-index: 10001;
}

.lightbox .prev-btn {
  left: 10px;
}

.lightbox .next-btn {
  right: 10px;
}

/* Lightbox header styling */
.lightbox .lightbox-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: var(--secondaryColor);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 10001;
}

.lightbox .lightbox-header.visible {
  opacity: 1;
}


.lightbox-header .image-counter {
  font-size: 16px;
  margin-left: 20px;
  color: #ffffff;
}

.button-group {
  display: flex;
  margin-right: 20px;
}

.button-group button {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  margin: 0 5px;
}

.button-group button:hover {
  color: #b9b9b9;
}

/* Add this to your gallery.css or main.css */

.image-gallery-container .lightbox img.zoomed {
  transform: scale(1.5); /* Adjust scale as needed */
  transition: transform 0.3s ease-in-out;
}

.image-gallery-container .lightbox img {
  transition: transform 0.3s ease-in-out;
}

@media (max-width: 768px) {
  .image-gallery-container .images {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
  }

  .image-gallery-container .lightbox img {
    max-width: 100%;
    height: auto;
  }

  .image-gallery-container .lightbox .title {
    font-size: 12px;
    padding: 8px;
    bottom: 10px;
    left: 10px;
  }

  .image-gallery-container .lightbox .options {
    top: 10px;
    right: 10px;
  }
}
