/* ============================================================
   GALLERY PAGE — gallery.css
   ============================================================ */

/* ── Page Banner (full definition — contact.css not loaded on this page) ── */
.tan-page-banner {
  position: relative;
  height: 500px;
  background: url('../images/slider91.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -120px;
  padding-top: 120px;
}
.tan-page-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,.55) 100%);
}
.tan-page-banner__content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.tan-page-banner__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--font-family-primary);
}
.tan-page-banner__breadcrumb a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: .85rem;
  transition: color .2s;
}
.tan-page-banner__breadcrumb a:hover { color: var(--primary-color); }
.tan-page-banner__sep { color: rgba(255,255,255,.5); font-size: .7rem; }
.tan-page-banner__breadcrumb span:last-child {
  color: var(--primary-color);
  font-size: .85rem;
  font-weight: 600;
}
.tan-page-banner__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
  font-family: var(--font-family-primary);
  letter-spacing: .5px;
}
.tan-page-banner .tan-page-banner__subtitle {
  color: #e79520 !important;
  font-size: clamp(.85rem, 1.5vw, 1rem);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 10px;
  font-family: var(--font-family-primary);
}

/* ── Gallery Page Section ── */
.tan-gp {
  padding: 70px 0 90px;
  background: #fff;
}
.tan-gp__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Filter Bar ── */
.tan-gp__filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}
.tan-gp__filter-btn {
  padding: 10px 28px;
  border-radius: 30px;
  border: 2px solid #e0e0e0;
  background: #fff;
  color: #6b7280;
  font-size: .88rem;
  font-weight: 600;
  font-family: var(--font-family-primary);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.tan-gp__filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.tan-gp__filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

/* ── Gallery Grid (CSS columns masonry — gallery page) ── */
.tan-gp__grid {
  columns: 3;
  column-gap: 16px;
}

/* ── Gallery Grid (explicit flex columns — home page section) ── */
.tan-gp__grid--flex {
  columns: unset;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.tan-gp__col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tan-gp__item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform .3s ease, opacity .3s ease;
}
.tan-gp__item--hidden {
  display: none;
}

/* Image wrapper — clips the hover zoom */
.tan-gp__item-img-wrap {
  position: relative;
  overflow: hidden;
  display: block;
  line-height: 0;
}
.tan-gp__item-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .5s ease;
}
.tan-gp__item:hover .tan-gp__item-img {
  transform: scale(1.06);
}

/* Images always render at their natural aspect ratio — CSS columns balances heights */

/* ── Hover Overlay ── */
.tan-gp__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity .3s ease;
}
.tan-gp__item:hover .tan-gp__overlay {
  opacity: 1;
}
.tan-gp__overlay-content {
  width: 100%;
  transform: translateY(8px);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tan-gp__item:hover .tan-gp__overlay-content {
  transform: translateY(0);
}
.tan-gp__overlay-content h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
  font-family: var(--font-family-primary);
}
.tan-gp__overlay-content p {
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.tan-gp__overlay-content p i {
  color: var(--primary-color);
}
.tan-gp__view-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  background: rgba(255,255,255,.2);
  border: 1.5px solid rgba(255,255,255,.6);
  color: #fff;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: .78rem;
  font-weight: 600;
  font-family: var(--font-family-primary);
  cursor: pointer;
  transition: background .2s, border-color .2s;
  backdrop-filter: blur(4px);
}
.tan-gp__view-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

/* ── Slideshow Overlay ── */
.tan-gp__slideshow {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.tan-gp__slideshow.active {
  display: flex;
}
.tan-gp__ss-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 860px;
  width: 100%;
  max-height: 95vh;
}

/* Close button */
.tan-gp__ss-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.4);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s;
}
.tan-gp__ss-close:hover { background: rgba(255,255,255,.3); }

/* Prev / Next */
.tan-gp__ss-prev,
.tan-gp__ss-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.4);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background .2s;
  z-index: 10001;
}
.tan-gp__ss-prev { left: 20px; }
.tan-gp__ss-next { right: 20px; }
.tan-gp__ss-prev:hover,
.tan-gp__ss-next:hover { background: rgba(255,255,255,.3); }

/* Main image */
.tan-gp__ss-slide {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  line-height: 0;
}
.tan-gp__ss-img {
  width: 100%;
  max-height: 55vh;
  object-fit: contain;
  display: block;
  border-radius: 16px 16px 0 0;
}

/* Slide info */
.tan-gp__ss-info {
  background: #1a1a2e;
  padding: 16px 24px;
  border-radius: 0 0 16px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  line-height: 1.4;
}
.tan-gp__ss-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  font-family: var(--font-family-primary);
  flex: 1;
}
.tan-gp__ss-location {
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  margin: 0;
  flex: 1;
}
.tan-gp__ss-location::before {
  content: '\f3c5';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--primary-color);
  margin-right: 5px;
}
.tan-gp__ss-category {
  background: var(--primary-color);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-family-primary);
  text-transform: uppercase;
  letter-spacing: .4px;
  flex-shrink: 0;
}

/* Counter */
.tan-gp__ss-counter {
  color: rgba(255,255,255,.5);
  font-size: .8rem;
  margin: 12px 0 10px;
  font-family: var(--font-family-primary);
  text-align: center;
  width: 100%;
}

/* Thumbnail strip */
.tan-gp__ss-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  padding: 4px 0 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.3) transparent;
}
.tan-gp__ss-thumbs::-webkit-scrollbar { height: 4px; }
.tan-gp__ss-thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,.3); border-radius: 2px; }
.tan-gp__ss-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: border-color .2s, opacity .2s;
  opacity: .55;
}
.tan-gp__ss-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tan-gp__ss-thumb.active {
  border-color: var(--primary-color);
  opacity: 1;
}
.tan-gp__ss-thumb:hover { opacity: .85; }

/* ── Active nav link ── */
.tan-header__nav-link--active {
  color: var(--primary-color) !important;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .tan-gp__container { padding: 0 24px; }
  .tan-gp__grid { columns: 2; }
  .tan-gp__grid--flex { flex-wrap: wrap; }
  .tan-gp__col { flex: 1 1 calc(50% - 8px); }
  .tan-gp__col:nth-child(3) { flex: 0 0 100%; flex-direction: row; gap: 16px; }
  .tan-gp__col:nth-child(3) .tan-gp__item { flex: 1; }
}
@media (max-width: 768px) {
  .tan-page-banner { height: 320px; margin-top: -60px; padding-top: 60px; }
  .tan-gp { padding: 50px 0 70px; }
  .tan-gp__ss-prev { left: 8px; }
  .tan-gp__ss-next { right: 8px; }
}
@media (max-width: 640px) {
  .tan-page-banner { height: 280px; }
  .tan-page-banner__title { font-size: 1.8rem; }
  .tan-gp__container { padding: 0 16px; }
  .tan-gp__grid { columns: 2; column-gap: 10px; }
  .tan-gp__col { flex: 0 0 100%; flex-direction: column; }
  .tan-gp__col:nth-child(3) { flex-direction: column; }
  .tan-gp__col:nth-child(3) .tan-gp__item { flex: unset; }
  .tan-gp__item { margin-bottom: 10px; }
  .tan-gp__filters { gap: 8px; }
  .tan-gp__filter-btn { padding: 8px 18px; font-size: .8rem; }
  .tan-gp__ss-info { flex-wrap: wrap; gap: 8px; }
  .tan-gp__ss-thumb { width: 52px; height: 40px; }
  .tan-gp__ss-prev, .tan-gp__ss-next { width: 36px; height: 36px; font-size: .9rem; }
}
