/* gallery section */
.gallery-section {
  width: 90%;
  margin: auto;
  padding: 40px 0;
}

.gallery-label {
  font-size: 16px;
  color: #1a2a44;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 75%;
  margin: auto;
}

.gallery-label .line {
  width: 35px;
  height: 3px;
  background: #ff5722;
  border-radius: 10px;
}

.gallery-title {
  font-size: 34px;
  font-weight: 700;
  color: #1a2a44;
  width: 75%;
  margin: auto;
}

.cc_a {
  margin-bottom: 30px;
}

.gallery-title span {
  color: #ff5c24;
}

.g-item {
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}

.g-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
}

.view-more-btn {
  margin-top: 35px;
  text-align: center;
}

.view-more-btn a {
  background: #09203f;
  padding: 14px 36px;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.view-more-btn a:hover {
  background: #ff5c24;
}

/* IMAGE POPUP */
.img-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 9999;
}

.img-popup.active {
  opacity: 1;
  visibility: visible;
}

.img-popup img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.close-popup {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 35px;
  color: #fff;
  cursor: pointer;
}



/* pages */


.ivg-wrapper {
  padding: 22px 12px;
}

.ivg-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* =======================
   TABS
======================= */
.ivg-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.ivg-tab-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: #f2f2f2;
  color: #111;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}

.ivg-tab-btn.ivg-active {
  background: #ff5722;
  color: #fff;
}

/* =======================
   TAGS (HORIZONTAL SCROLL)
======================= */
.ivg-tags {
  display: none;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 10px;
  margin: 10px 0 16px;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.ivg-tags.ivg-dragging {
  cursor: grabbing;
}

.ivg-tags::-webkit-scrollbar {
  height: 0;
}

.ivg-tags.ivg-tags-active {
  display: flex;
}

.ivg-tag-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  scroll-snap-align: start;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #fff;
  cursor: pointer;
  font-size: 13.5px;
  line-height: 1;
  transition: 0.2s;
}

.ivg-tag-btn:hover {
  border-color: #ff5722;
}

.ivg-tag-btn.ivg-active {
  background: #ff5722;
  color: #fff;
  border-color: #ff5722;
}

/* =======================
   GALLERY GRID
   ✅ Fixed columns (prevents single item from becoming huge)
======================= */
.ivg-gallery {
  display: none;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ivg-gallery.ivg-active {
  display: grid;
}

/* Tablet */
@media (max-width: 1024px) {
  .ivg-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .ivg-wrapper {
    padding: 18px 10px;
  }

  .ivg-tab-btn {
    padding: 10px 14px;
    font-size: 14px;
  }

  .ivg-tag-btn {
    padding: 9px 12px;
    font-size: 12.5px;
  }

  .ivg-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .ivg-gallery {
    grid-template-columns: 1fr;
  }
}

/* =======================
   SAME SIZE BOXES
======================= */
.ivg-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f4f4;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.ivg-box img,
.ivg-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =======================
   MODAL
======================= */
.ivg-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.ivg-modal.ivg-active {
  display: flex;
}

.ivg-modal-content {
  position: relative;
  width: min(1100px, 96vw);
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ivg-modal-content img,
.ivg-modal-content video {
  width: 100%;
  max-height: 80vh;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.ivg-modal-close {
  position: absolute;
  top: -10px;
  right: -8px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.ivg-no-scroll {
  overflow: hidden;
}