/* =========================================================
   social.css
   Social page tiles (video + stills)
   Dreamweaver-safe
   ========================================================= */

.social-intro{
  margin-top: 4px;
  margin-bottom: 22px;
}

.social-intro p{ margin: 0 0 10px; }

.social-note{
  opacity: 0.75;
  font-size: 0.95em;
}

/* Section headings */
.social-section{
  width: 100%;
  margin: 10px 0 6px;
}

.social-section-title{
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: 0.65;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

.social-subhead{
  margin: 16px 0 10px;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  opacity: 0.70;
}

.social-block{ padding-top: 2px; }

/* Tile grids */
.tile-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 22px 18px;
  padding-top: 8px;
  justify-content: flex-start;
}

/* 2-up grid (desktop + tablet) */
.tile-grid--land4 .tile-card,
.tile-grid--sq4 .tile-card{
  width: calc(50% - 9px);
}

/* 4-up square grid — force single row on desktop */
.tile-grid--sq4{
  justify-content: space-between;
}

.tile-grid--sq4 .tile-card{
  width: calc(25% - 14px);
}



/* 3-up grids: center as a unit */
.tile-grid--sq3,
.tile-grid--tall3{
  justify-content: center;
  max-width: 900px;     /* keeps 3-up visually centered + tidy */
  margin-left: auto;
  margin-right: auto;
}

/* 3-up item widths */
.tile-grid--sq3 .tile-card,
.tile-grid--tall3 .tile-card{
  width: calc(33.333% - 12px);
}

/* Card */
.tile-card{
  margin: 0;
  text-align: left;
}

/* Boxes (ratios) */
.tile-box{
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  background: #101114;
  box-shadow:
    0 10px 22px rgba(0,0,0,0.18),
    inset 1px 1px 2px rgba(255,255,255,0.08);
}

/* Ratios */
.tile-box--land{ padding-top: 56%; }  /* 16:9 */
.tile-box--sq{ padding-top: 100%; }   /* 1:1 */
.tile-box--tall{ padding-top: 160%; } /* ~9:16 */

.tile-box:hover{ opacity: 0.95; }

/* Images (stills + vimeo thumbs) */
.tile-img{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Video play icon */
.tile-play{
  position: absolute;
  left: 14px;
  top: 14px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.18);
}

.tile-play:before{
  content:"";
  position: absolute;
  left: 18px;
  top: 14px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid rgba(255,255,255,0.85);
}

/* Captions */
.tile-cap{
  margin-top: 10px;
  padding-left: 2px;
}

.cap-title{
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-bottom: 3px;
}

.cap-meta{
  font-size: 13px;
  opacity: 0.78;
  line-height: 1.35;
}

/* ---------------------------------------------------------
   IMAGE MODAL (copied from photo page behaviour)
--------------------------------------------------------- */

.img-modal{
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
}

.img-modal.is-open{ display: block; }

.img-modal__backdrop{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.82);
}

.img-modal__panel{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92%;
  max-width: 980px;
  transform: translate(-50%, -50%);
  background: rgba(20,20,20,0.92);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.65);
}

.img-modal__close{
  position: absolute;
  right: 10px;
  top: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 26px;
  line-height: 40px;
  cursor: pointer;
  z-index: 50;
}

.img-modal__close:hover{
  background: rgba(255,255,255,0.18);
}

.img-modal__figure{ margin: 0; }

.img-modal__img{
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(0,0,0,0.25);
}

.img-modal__caption{
  margin-top: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 520px){
  .img-modal__panel{ padding: 10px; }
  .img-modal__img{ max-height: 72vh; }
}

/* ---------------------------------------------------------
   VIDEO MODAL
--------------------------------------------------------- */

.vid-modal{
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
}

.vid-modal.is-open{ display: block; }

.vid-modal__backdrop{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.82);
}

.vid-modal__panel{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92%;
  max-width: 980px;
  transform: translate(-50%, -50%);
  background: rgba(20,20,20,0.92);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.65);
}

.vid-modal__close{
  position: absolute;
  right: 10px;
  top: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 26px;
  line-height: 40px;
  cursor: pointer;
  z-index: 50;
}

.vid-modal__close:hover{
  background: rgba(255,255,255,0.18);
}

.vid-modal__wrap{
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(0,0,0,0.25);
}

.vid-modal__wrap iframe{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.vid-modal__caption{
  margin-top: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  line-height: 1.4;
}

/* Prevent background scroll when modal open */
.modal-lock{ overflow: hidden; }


/* =========================================================
   Video modal — clearly larger viewing area
   ========================================================= */

.video-modal-window{
  width: 98vw;          /* almost full width */
  max-width: 1700px;    /* big desktop monitors */
}

.video-modal-frame{
  max-height: 92vh;     /* much taller */
}

/* Large screens — pull it up slightly */
@media (min-width: 1200px){
  .video-modal-window{
    margin-top: 2vh;
  }
}



/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 980px){
  .tile-grid--land4 .tile-card,
  .tile-grid--sq4 .tile-card{
    width: calc(50% - 9px);
  }

  .tile-grid--sq3 .tile-card,
  .tile-grid--tall3 .tile-card{
    width: calc(50% - 9px);
  }

  .tile-grid--sq3,
  .tile-grid--tall3{
    max-width: none;
  }
}

@media (max-width: 700px){
  .tile-grid{ gap: 20px 16px; }

  .tile-grid--land4 .tile-card,
  .tile-grid--sq4 .tile-card,
  .tile-grid--sq3 .tile-card,
  .tile-grid--tall3 .tile-card{
    width: 100%;
  }

  .tile-box--land{ padding-top: 62%; }
  .tile-box--tall{ padding-top: 140%; }
}
