/* ======================================================
   TWILIGHT RESORT
   GALLERY PAGE
   FULL CLEAN REPLACEMENT
====================================================== */


/* ======================================================
   01. OWNERREZ RESET
====================================================== */

html:has(main.tr-gallery-page),
html:has(main.tr-gallery-page) body{
  background:#F5F3E8!important;
  color:#292B27!important;
}


html:has(main.tr-gallery-page)
#content.container{
  width:100%!important;
  max-width:none!important;

  margin:0!important;

  background:#F5F3E8!important;
}


html:has(main.tr-gallery-page)
#content > .body-content{
  width:100%!important;
  max-width:none!important;

  margin:0!important;
  padding:0!important;

  background:#F5F3E8!important;
}


/* Hide native OwnerRez title */

html:has(main.tr-gallery-page)
#content > .body-content > .row{
  display:none!important;

  width:0!important;
  height:0!important;

  margin:0!important;
  padding:0!important;

  overflow:hidden!important;
}


html:has(main.tr-gallery-page)
#content h1.page-header,

html:has(main.tr-gallery-page)
#content p.lead{
  display:none!important;
}


/* ======================================================
   02. BASE
====================================================== */

.tr-gallery-page{
  width:100%;

  margin:0;
  padding:0;

  overflow:hidden;

  background:#F5F3E8;
  color:#292B27;

  font-family:'Alone Kaium',Arial,sans-serif;
}


.tr-gallery-page *,
.tr-gallery-page *::before,
.tr-gallery-page *::after{
  box-sizing:border-box;
}


.tr-gallery-page img{
  display:block;

  max-width:100%;
}


.tr-gallery-page h1,
.tr-gallery-page h2,
.tr-gallery-page h3{
  margin:0!important;
  padding:0!important;

  font-family:'Sora',Arial,sans-serif!important;

  font-weight:600!important;

  letter-spacing:-.04em!important;
}


.tr-gallery-page p{
  margin:0;
}


.tr-gallery-inner{
  width:calc(100% - 96px);
  max-width:1320px;

  margin:0 auto;
}


.tr-gallery-kicker{
  margin:0 0 14px;

  color:#B79A62!important;

  font-family:'Sora',Arial,sans-serif!important;

  font-size:11px;
  line-height:1.3;

  font-weight:600;

  letter-spacing:.17em;

  text-transform:uppercase;
}


/* ======================================================
   03. HERO
====================================================== */

.tr-gallery-hero{
  position:relative;

  width:calc(100% - 48px);
  max-width:1480px;

  height:590px;

  margin:24px auto 0;

  overflow:hidden;

  background:#0B1712;

  border-radius:30px;
}


.tr-gallery-hero-image{
  position:absolute!important;
  inset:0!important;

  width:100%!important;
  height:100%!important;

  min-width:100%!important;
  min-height:100%!important;

  max-width:none!important;
  max-height:none!important;

  object-fit:cover!important;
  object-position:center 52%!important;
}


.tr-gallery-hero-shade{
  position:absolute;
  inset:0;

  z-index:1;

  background:
    linear-gradient(
      90deg,
      rgba(7,18,14,.92) 0%,
      rgba(7,18,14,.76) 34%,
      rgba(7,18,14,.41) 58%,
      rgba(7,18,14,.08) 100%
    );
}


.tr-gallery-hero-content{
  position:absolute;

  z-index:2;

  left:max(48px,calc((100% - 1320px) / 2));
  bottom:58px;

  width:min(650px,calc(100% - 96px));
}


.tr-gallery-hero
.tr-gallery-kicker{
  color:#D1B373!important;
}


html:has(main.tr-gallery-page)
#content
.tr-gallery-page
.tr-gallery-hero
h1{
  max-width:650px!important;

  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;

  background:none!important;

  font-size:clamp(50px,4.7vw,70px)!important;
  line-height:1.01!important;

  letter-spacing:-.045em!important;
}


.tr-gallery-hero p{
  max-width:560px;

  margin-top:18px;

  color:rgba(255,255,255,.90)!important;
  -webkit-text-fill-color:rgba(255,255,255,.90)!important;

  font-size:18px;
  line-height:1.62;
}


/* ======================================================
   04. INTRO + SECTION HEADS
====================================================== */

.tr-gallery-intro{
  padding:78px 0 72px;
}


.tr-gallery-intro-grid,
.tr-gallery-section-head{
  display:grid;

  grid-template-columns:
    minmax(0,1fr)
    minmax(320px,.58fr);

  gap:76px;

  align-items:end;
}


.tr-gallery-section-head{
  margin-bottom:34px;
}


html:has(main.tr-gallery-page)
#content
.tr-gallery-page
.tr-gallery-intro h2,

html:has(main.tr-gallery-page)
#content
.tr-gallery-page
.tr-gallery-section-head h2{
  max-width:690px;

  color:#173329!important;
  -webkit-text-fill-color:#173329!important;

  font-size:clamp(40px,3.7vw,54px)!important;
  line-height:1.05!important;
}


.tr-gallery-intro-grid > p,
.tr-gallery-section-head > p{
  max-width:460px;

  padding-bottom:4px;

  color:#62675F;

  font-size:15.5px;
  line-height:1.68;
}


/* ======================================================
   05. PHOTO COMMON
====================================================== */

.tr-gallery-photo{
  position:relative;

  margin:0;

  overflow:hidden;

  background:#DDD9CC;

  border-radius:18px;
}


.tr-gallery-photo > img{
  width:100%!important;
  height:100%!important;

  max-width:none!important;

  object-fit:cover!important;
  object-position:center!important;
}


.tr-gallery-photo figcaption{
  position:absolute;

  left:0;
  right:0;
  bottom:0;

  display:flex;

  align-items:center;

  gap:12px;

  padding:44px 22px 20px;

  background:
    linear-gradient(
      0deg,
      rgba(7,17,13,.82) 0%,
      rgba(7,17,13,.42) 57%,
      rgba(7,17,13,0) 100%
    );

  color:#FFFFFF;
}


.tr-gallery-photo figcaption small{
  display:block;

  margin-bottom:4px;

  color:#D8BE86;

  font-family:'Sora',Arial,sans-serif!important;

  font-size:8px;
  font-weight:600;

  letter-spacing:.14em;
}


.tr-gallery-photo figcaption strong{
  display:block;

  color:#FFFFFF;

  font-family:'Sora',Arial,sans-serif!important;

  font-size:16px;
  line-height:1.25;

  font-weight:600;
}


/* ======================================================
   06. ICONS
====================================================== */

.tr-gallery-icon{
  display:flex;

  align-items:center;
  justify-content:center;

  flex:0 0 34px;

  width:34px;
  height:34px;

  border:1px solid rgba(255,255,255,.38);
  border-radius:50%;
}


.tr-gallery-icon svg{
  width:17px;
  height:17px;

  fill:none;

  stroke:#D8BE86;

  stroke-width:1.6;

  stroke-linecap:round;
  stroke-linejoin:round;
}


/* ======================================================
   07. STAY AT TWILIGHT
====================================================== */

.tr-gallery-stay{
  padding:0 0 84px;
}


.tr-gallery-stay-grid{
  display:grid;

  grid-template-columns:
    1.15fr .85fr;

  grid-template-areas:
    "main tent"
    "main seasonal"
    "evening evening";

  gap:16px;
}


.tr-gallery-stay-main{
  grid-area:main;

  height:616px;
}


.tr-gallery-stay-small{
  height:300px;
}


.tr-gallery-stay-small:nth-of-type(2){
  grid-area:tent;
}


.tr-gallery-stay-small:nth-of-type(3){
  grid-area:seasonal;
}


.tr-gallery-stay-wide{
  grid-area:evening;

  height:390px;
}


/* ======================================================
   08. GET OUTSIDE
====================================================== */

.tr-gallery-outdoors{
  padding:0 0 84px;
}


.tr-gallery-outdoor-grid{
  display:grid;

  grid-template-columns:
    1.15fr .85fr;

  grid-template-areas:
    "large atv"
    "large rock";

  gap:16px;
}


.tr-gallery-outdoor-large{
  grid-area:large;

  height:616px;
}


.tr-gallery-outdoor-small{
  height:300px;
}


.tr-gallery-outdoor-small:nth-of-type(2){
  grid-area:atv;
}


.tr-gallery-outdoor-small:nth-of-type(3){
  grid-area:rock;
}


/* ======================================================
   09. REGION
====================================================== */

.tr-gallery-region{
  padding:0 0 84px;
}


.tr-gallery-region-grid{
  display:grid;

  grid-template-columns:
    1.1fr .9fr;

  grid-template-areas:
    "main bridge"
    "main cove";

  gap:16px;
}


.tr-gallery-region-main{
  grid-area:main;

  height:616px;
}


.tr-gallery-region-side{
  height:300px;
}


.tr-gallery-region-side:nth-of-type(2){
  grid-area:bridge;
}


.tr-gallery-region-side:nth-of-type(3){
  grid-area:cove;
}


/* ======================================================
   10. SUNSET FEATURE
====================================================== */

.tr-gallery-sunset{
  padding:0 0 80px;
}


.tr-gallery-sunset-photo{
  position:relative;

  height:500px;

  margin:0;

  overflow:hidden;

  background:#171714;

  border-radius:24px;
}


.tr-gallery-sunset-photo > img{
  width:100%!important;
  height:100%!important;

  max-width:none!important;

  object-fit:cover!important;
  object-position:center 58%!important;
}


.tr-gallery-sunset-shade{
  position:absolute;
  inset:0;

  background:
    linear-gradient(
      90deg,
      rgba(8,17,13,.74) 0%,
      rgba(8,17,13,.38) 44%,
      rgba(8,17,13,.04) 78%
    );
}


.tr-gallery-sunset-photo figcaption{
  position:absolute;

  z-index:2;

  left:48px;
  bottom:44px;

  width:min(630px,calc(100% - 96px));
}


.tr-gallery-sunset-photo
.tr-gallery-kicker{
  color:#D1B373!important;
}


html:has(main.tr-gallery-page)
#content
.tr-gallery-page
.tr-gallery-sunset h2{
  max-width:630px;

  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;

  font-size:clamp(40px,3.7vw,54px)!important;
  line-height:1.05!important;
}


/* ======================================================
   11. FINAL CTA
====================================================== */

.tr-gallery-cta{
  padding:0 0 40px;
}


.tr-gallery-cta-panel{
  display:grid;

  grid-template-columns:
    minmax(0,1fr)
    auto;

  gap:54px;

  align-items:center;

  padding:45px 48px;

  background:#E8EADC;

  border:1px solid #D1D3C5;
  border-radius:22px;
}


.tr-gallery-cta-panel > div:first-child{
  max-width:720px;
}


html:has(main.tr-gallery-page)
#content
.tr-gallery-page
.tr-gallery-cta h2{
  max-width:680px;

  color:#173329!important;
  -webkit-text-fill-color:#173329!important;

  font-size:clamp(37px,3.3vw,48px)!important;
  line-height:1.05!important;
}


.tr-gallery-cta p{
  max-width:610px;

  margin-top:14px;

  color:#5D625C;

  font-size:15.5px;
  line-height:1.65;
}


.tr-gallery-cta-actions{
  display:flex;

  flex-wrap:wrap;

  gap:10px;
}


/* ======================================================
   12. BUTTONS
====================================================== */

.tr-gallery-btn{
  display:inline-flex;

  align-items:center;
  justify-content:center;

  min-height:49px;

  padding:0 23px;

  border:1px solid transparent;
  border-radius:999px;

  font-family:'Sora',Arial,sans-serif!important;

  font-size:12px;
  line-height:1;

  font-weight:600;

  text-decoration:none!important;
}


.tr-gallery-btn-primary{
  background:#173329;

  border-color:#173329;

  color:#FFFFFF!important;
}


.tr-gallery-btn-primary:hover{
  background:#B79A62;

  border-color:#B79A62;

  color:#171714!important;
}


.tr-gallery-btn-secondary{
  background:transparent;

  border-color:#173329;

  color:#173329!important;
}


.tr-gallery-btn-secondary:hover{
  background:#173329;

  color:#FFFFFF!important;
}


/* ======================================================
   13. TABLET
====================================================== */

@media(max-width:1100px){

  .tr-gallery-inner{
    width:calc(100% - 64px);
  }


  .tr-gallery-hero{
    width:calc(100% - 32px);
  }


  .tr-gallery-intro-grid,
  .tr-gallery-section-head{
    gap:46px;
  }


  .tr-gallery-stay-main,
  .tr-gallery-outdoor-large,
  .tr-gallery-region-main{
    height:520px;
  }


  .tr-gallery-stay-small,
  .tr-gallery-outdoor-small,
  .tr-gallery-region-side{
    height:252px;
  }

}


/* ======================================================
   14. MOBILE
====================================================== */

@media(max-width:760px){

  .tr-gallery-inner{
    width:calc(100% - 40px);
  }


  /* HERO */

  .tr-gallery-hero{
    width:calc(100% - 20px);

    height:560px;

    margin-top:10px;

    border-radius:22px;
  }


  .tr-gallery-hero-image{
    object-position:center 55%!important;
  }


  .tr-gallery-hero-shade{
    background:
      linear-gradient(
        0deg,
        rgba(7,17,13,.95) 0%,
        rgba(7,17,13,.76) 49%,
        rgba(7,17,13,.34) 75%,
        rgba(7,17,13,.05) 100%
      );
  }


  .tr-gallery-hero-content{
    left:24px;
    bottom:30px;

    width:calc(100% - 48px);
  }


  html:has(main.tr-gallery-page)
  #content
  .tr-gallery-page
  .tr-gallery-hero
  h1{
    font-size:39px!important;
    line-height:1.04!important;
  }


  .tr-gallery-hero p{
    margin-top:15px;

    font-size:15.5px;
    line-height:1.56;
  }


  /* INTRO */

  .tr-gallery-intro{
    padding:56px 0 54px;
  }


  .tr-gallery-intro-grid,
  .tr-gallery-section-head{
    grid-template-columns:1fr;

    gap:17px;
  }


  html:has(main.tr-gallery-page)
  #content
  .tr-gallery-page
  .tr-gallery-intro h2,

  html:has(main.tr-gallery-page)
  #content
  .tr-gallery-page
  .tr-gallery-section-head h2{
    font-size:36px!important;
  }


  .tr-gallery-intro-grid > p,
  .tr-gallery-section-head > p{
    padding-bottom:0;
  }


  /* ALL GALLERY GROUPS */

  .tr-gallery-stay,
  .tr-gallery-outdoors,
  .tr-gallery-region{
    padding-bottom:60px;
  }


  .tr-gallery-stay-grid,
  .tr-gallery-outdoor-grid,
  .tr-gallery-region-grid{
    display:grid;

    grid-template-columns:1fr;
    grid-template-areas:none;

    gap:12px;
  }


  .tr-gallery-stay-main,
  .tr-gallery-stay-small,
  .tr-gallery-stay-wide,
  .tr-gallery-outdoor-large,
  .tr-gallery-outdoor-small,
  .tr-gallery-region-main,
  .tr-gallery-region-side{
    grid-area:auto!important;

    width:100%;

    height:280px;
  }


  /* SUNSET */

  .tr-gallery-sunset{
    padding-bottom:60px;
  }


  .tr-gallery-sunset-photo{
    height:400px;

    border-radius:20px;
  }


  .tr-gallery-sunset-photo figcaption{
    left:24px;
    bottom:28px;

    width:calc(100% - 48px);
  }


  html:has(main.tr-gallery-page)
  #content
  .tr-gallery-page
  .tr-gallery-sunset h2{
    font-size:35px!important;
  }


  /* CTA */

  .tr-gallery-cta{
    padding-bottom:20px;
  }


  .tr-gallery-cta-panel{
    grid-template-columns:1fr;

    padding:31px 24px;

    border-radius:18px;
  }


  html:has(main.tr-gallery-page)
  #content
  .tr-gallery-page
  .tr-gallery-cta h2{
    font-size:34px!important;
  }


  .tr-gallery-cta-actions{
    flex-direction:column;

    width:100%;
  }


  .tr-gallery-cta-actions
  .tr-gallery-btn{
    width:100%;
  }

}


/* ======================================================
   15. SMALL MOBILE
====================================================== */

@media(max-width:480px){

  .tr-gallery-inner{
    width:calc(100% - 28px);
  }


  .tr-gallery-hero{
    height:580px;
  }


  html:has(main.tr-gallery-page)
  #content
  .tr-gallery-page
  .tr-gallery-hero
  h1{
    font-size:35px!important;
  }


  .tr-gallery-stay-main,
  .tr-gallery-stay-small,
  .tr-gallery-stay-wide,
  .tr-gallery-outdoor-large,
  .tr-gallery-outdoor-small,
  .tr-gallery-region-main,
  .tr-gallery-region-side{
    height:245px;
  }


  .tr-gallery-sunset-photo{
    height:360px;
  }


  html:has(main.tr-gallery-page)
  #content
  .tr-gallery-page
  .tr-gallery-cta h2{
    font-size:31px!important;
  }

}