
/* =====================================
   TR FASHIONS - GALLERY PAGE
===================================== */

:root {
  --green: #092c23;
  --green-light: #124637;
  --gold: #c9a45c;
  --cream: #f7f5ef;
  --white: #ffffff;
  --text: #24352d;
  --muted: #748078;
  --border: #e5e4dc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
}

a {
  text-decoration: none;
}


/* =====================================
   HEADER - SAME AS PRODUCTS PAGE
===================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e5e4dc;
  box-shadow: 0 3px 15px rgba(9, 44, 35, 0.05);
}

.header-inner {
  max-width: 1800px;
  min-height: 78px;
  margin: auto;
  padding: 8px 3%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--green);
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: clamp(20px, 2.3vw, 38px);
  font-weight: bold;
  white-space: nowrap;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.logo img {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.logo span {
  color: var(--green);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.logo-text strong {
  color: #092c23;
  font-family: Georgia, serif;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 1px;
}

.logo-text small {
  color: #997638;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1.5px;
  line-height: 1.4;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.7vw, 28px);
}

.nav a {
  color: var(--green);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--gold);
}

.nav .quote-button {
  display: inline-block;
  padding: 10px 16px;
  color: var(--green);
  background: var(--gold);
  border-radius: 4px;
  font-weight: bold;
}

.nav .quote-button:hover {
  color: var(--green);
  background: #e3c783;
}

.menu-button {
  display: none;
  border: 1px solid var(--gold);
  background: white;
  color: var(--green);
  padding: 7px 12px;
  font-size: 24px;
  border-radius: 4px;
  cursor: pointer;
}


/* =====================================
   HEADER RESPONSIVE
===================================== */

@media (max-width: 1050px) {

  .header-inner {
    gap: 15px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav {
    gap: 13px;
  }

  .nav a {
    font-size: 12px;
  }

  .nav .quote-button {
    padding: 10px 11px;
  }

}

@media (max-width: 760px) {

  .header-inner {
    min-height: 65px;
    padding: 6px 20px;
    flex-wrap: wrap;
  }

  .logo {
    gap: 8px;
  }

  .logo img {
    width: 45px;
    height: 45px;
  }

  .logo-text strong {
    font-size: 18px;
  }

  .logo-text small {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .menu-button {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 15px 22px 22px;
    background: #ffffff;
    border-top: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
    font-size: 14px;
    white-space: normal;
    border-bottom: 1px solid #eeeeea;
  }

  .nav .quote-button {
    margin-top: 12px;
    padding: 12px 15px;
    text-align: center;
    border-bottom: none;
  }

}


/* =====================================
   GALLERY HERO
===================================== */

.tr-gallery-hero {
  position: relative;
  min-height: 490px;
  display: flex;
  align-items: center;
  padding: 80px 7%;
  overflow: hidden;

  background:
    linear-gradient(
      90deg,
      rgba(6, 28, 22, .92),
      rgba(6, 28, 22, .60)
    ),
    url("/image/gallery/product-01.jpg")
    center / cover no-repeat;
}

.tr-gallery-hero-content {
  max-width: 750px;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 17px;
}

.tr-gallery-hero h1 {
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(43px, 6.5vw, 75px);
  line-height: 1.12;
  font-weight: normal;
  margin-bottom: 22px;
}

.tr-gallery-hero h1 span {
  color: var(--gold);
  font-style: italic;
}

.tr-gallery-hero-content > p:not(.eyebrow) {
  max-width: 630px;
  color: #d8e2dc;
  font-size: 15px;
  line-height: 1.9;
}

.tr-gallery-button {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 23px;
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 3px;
  color: var(--green);
  font-size: 13px;
  font-weight: bold;
  transition: .3s;
}

.tr-gallery-button:hover {
  background: #e3c783;
  transform: translateY(-2px);
}


/* =====================================
   GALLERY INTRODUCTION
===================================== */

.tr-gallery-intro {
  max-width: 1190px;
  margin: auto;
  padding: 85px 25px 40px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  gap: 40px;
}

.tr-gallery-intro .eyebrow {
  color: #997638;
  margin-bottom: 10px;
}

.tr-gallery-intro h2 {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: normal;
  line-height: 1.2;
}

.tr-gallery-intro h2 span {
  color: var(--gold);
}

.tr-gallery-intro > p {
  max-width: 510px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}


/* =====================================
   GALLERY FILTERS
===================================== */

.tr-gallery-section {
  max-width: 1290px;
  margin: auto;
  padding: 10px 25px 90px;
}

.tr-gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.tr-gallery-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.tr-filter-btn {
  padding: 9px 14px;
  border: 1px solid #dcded5;
  background: transparent;
  color: #536158;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  border-radius: 3px;
  transition: .25s;
}

.tr-filter-btn:hover {
  border-color: var(--green);
  color: var(--green);
}

.tr-filter-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.tr-gallery-count {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 12px;
}


/* =====================================
   PREMIUM EQUAL IMAGE GRID
===================================== */

.tr-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px 20px;
}

.tr-gallery-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 4.5;
  overflow: hidden;
  background: #e9e5dc;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}

.tr-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(9, 44, 35, .10);
}

.tr-gallery-card[hidden] {
  display: none !important;
}

.tr-gallery-card > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.tr-gallery-card:hover > img {
  transform: scale(1.06);
}


/* IMAGE OVERLAY */

.tr-gallery-overlay {
  position: absolute;
  inset: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    to top,
    rgba(9, 44, 35, .93),
    rgba(9, 44, 35, .08) 70%,
    transparent
  );
  opacity: 0;
  transition: opacity .35s;
}

.tr-gallery-card:hover .tr-gallery-overlay {
  opacity: 1;
}

.tr-gallery-overlay span {
  color: var(--gold);
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1.5px;
}

.tr-gallery-overlay h3 {
  color: #ffffff;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: normal;
  margin-top: 7px;
}


/* VIEW BUTTON */

.tr-image-view {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 25px;
  cursor: pointer;
  opacity: 0;
  transition: .3s;
}

.tr-gallery-card:hover .tr-image-view {
  opacity: 1;
}


/* =====================================
   BUYER CTA
===================================== */

.tr-gallery-cta {
  padding: 80px 25px;
  background: linear-gradient(
    110deg,
    #e8d5c8 0%,
    #e8d9b7 45%,
    #d8c58f 100%
  );
  color: #102e27;
  text-align: center;
}

.tr-gallery-cta-inner {
  max-width: 780px;
  margin: auto;
}

.tr-gallery-cta h2 {
  margin-bottom: 17px;
  font-family: Georgia, serif;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: normal;
  line-height: 1.3;
}

.tr-gallery-cta-inner > p:not(.eyebrow) {
  max-width: 650px;
  margin: 0 auto 27px;
  color: #24352d;
  font-size: 14px;
}

.tr-gallery-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 3px;
  color: var(--green);
  font-size: 13px;
  font-weight: bold;
  transition: .25s;
}

.tr-gallery-cta a:hover {
  background: #e3c783;
  transform: translateY(-2px);
}


/* =====================================
   FOOTER - SAME AS PRODUCTS PAGE
===================================== */

.tr-premium-footer {
  padding: 48px 5% 0;
  background: #102e27;
  color: #eeeeee;
}

.tr-footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
  gap: 35px;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 35px;
}

/* Footer Logo */

.logo2 {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
}

.logo2 img {
  display: block;
  width: 120px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Brand Description */

.tr-footer-brand p {
  max-width: 380px;
  margin: 0 0 16px;
  color: #c5c5c5;
  font-size: 14px;
  line-height: 1.8;
}

.tr-footer-email {
  color: #d7bd7d;
  font-size: 14px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

/* Footer Columns */

.tr-footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.tr-footer-column h3 {
  margin: 4px 0 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .6px;
}

.tr-footer-column a,
.tr-footer-column p {
  margin: 0;
  color: #c8c8c8;
  font-size: 14px;
  line-height: 1.7;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.tr-footer-column a {
  transition: color .25s ease;
}

.tr-footer-column a:hover,
.tr-footer-email:hover {
  color: #d7bd7d;
}

/* Footer Bottom */

.tr-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.tr-footer-bottom p {
  margin: 0;
  color: #bdbdbd;
  font-size: 13px;
  line-height: 1.7;
}

.tr-back-top {
  color: #d7bd7d;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.tr-back-top:hover {
  color: #ffffff;
}


/* SOCIAL MEDIA ICONS */

.tr-footer-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 20px;
}

.tr-footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #d7bd7d;
  border: 1px solid rgba(215, 189, 125, .45);
  border-radius: 50%;
  text-decoration: none;
  transition: color .25s ease,
              background .25s ease,
              border-color .25s ease,
              transform .25s ease;
}

.tr-footer-socials svg {
  display: block;
  width: 17px;
  height: 17px;
}

.tr-footer-socials a:hover {
  color: #102e27;
  background: #d7bd7d;
  border-color: #d7bd7d;
  transform: translateY(-3px);
}


/* =====================================
   FOOTER RESPONSIVE
===================================== */

@media (max-width: 900px) {

  .tr-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
  }

}

@media (max-width: 520px) {

  .tr-premium-footer {
    padding: 35px 22px 0;
  }

  .tr-footer-main {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-bottom: 28px;
  }

  .logo2 img {
    width: 110px;
    height: auto;
  }

  .tr-footer-brand p {
    max-width: 100%;
  }

  .tr-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .tr-footer-socials {
    gap: 11px;
  }

  .tr-footer-socials a {
    width: 36px;
    height: 36px;
  }

}


/* =====================================
   LIGHTBOX
===================================== */

.tr-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
  background: rgba(0, 0, 0, .95);
}

.tr-lightbox.open {
  display: flex;
}

.tr-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.tr-lightbox button {
  position: absolute;
  border: none;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  transition: .3s;
}

.tr-lightbox button:hover {
  color: var(--gold);
}

.tr-lightbox-close {
  top: 20px;
  right: 30px;
  font-size: 42px;
}

.tr-lightbox-prev,
.tr-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 35px;
  padding: 15px;
}

.tr-lightbox-prev {
  left: 15px;
}

.tr-lightbox-next {
  right: 15px;
}


/* =====================================
   GALLERY RESPONSIVE
===================================== */

@media (max-width: 1050px) {

  .tr-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (max-width: 760px) {

  .tr-gallery-hero {
    min-height: 430px;
    padding: 65px 25px;
  }

  .tr-gallery-intro {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 60px 22px 30px;
  }

  .tr-gallery-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .tr-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }

  .tr-gallery-section {
    padding: 10px 20px 70px;
  }

  .tr-gallery-overlay {
    opacity: 1;
    padding: 14px;
  }

  .tr-gallery-overlay span {
    font-size: 8px;
  }

  .tr-gallery-overlay h3 {
    font-size: 18px;
  }

  .tr-image-view {
    opacity: 1;
  }

}

@media (max-width: 480px) {

  .tr-gallery-hero {
    min-height: 360px;
    padding: 55px 20px;
  }

  .tr-gallery-hero h1 {
    font-size: 39px;
  }

  .tr-gallery-hero-content > p:not(.eyebrow) {
    font-size: 13px;
  }

  .tr-gallery-grid {
    gap: 12px 9px;
  }

  .tr-gallery-card {
    aspect-ratio: 1 / 1.2;
  }

  .tr-gallery-overlay {
    padding: 10px;
  }

  .tr-gallery-overlay span {
    font-size: 7px;
    letter-spacing: .8px;
  }

  .tr-gallery-overlay h3 {
    font-size: 14px;
  }

  .tr-image-view {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    font-size: 20px;
  }

  .tr-gallery-section {
    padding-left: 13px;
    padding-right: 13px;
  }

  .tr-gallery-filters {
    gap: 7px;
  }

  .tr-filter-btn {
    padding: 8px 10px;
    font-size: 10px;
  }

  .tr-gallery-cta {
    padding: 60px 20px;
  }

  .tr-lightbox {
    padding: 45px 35px;
  }

  .tr-lightbox-prev {
    left: 0;
  }

  .tr-lightbox-next {
    right: 0;
  }

}


/* FIX: FULL WIDTH GALLERY HERO IMAGE */

.tr-gallery-hero {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 600px;
  margin: 0 calc(50% - 50vw) !important;
  padding: 0 !important;
  overflow: hidden;
  position: relative;
  background: #f7f5ef;
}

.tr-gallery-hero-image {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  display: block;
  object-fit: cover !important;
  object-position: center center;
  margin: 0 !important;
}

/* TABLET */
@media (max-width: 768px) {
  .tr-gallery-hero {
    height: 400px;
  }
}

/* MOBILE */
@media (max-width: 480px) {
  .tr-gallery-hero {
    height: 280px;
  }
}