/* =========================================================
   graphics.css
   Graphics page tiles (stills + motion)
   Dreamweaver-safe (flex, no grid)
   ========================================================= */

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

.graphics-intro p{ margin: 0; }

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

.graphics-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);
}

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

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

/* ---------------------------------------------------------
   TILE GRIDS (variable columns)
--------------------------------------------------------- */

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

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

/* Column widths (desktop) */
.tile-grid--c6 .tile-card{ width: calc(16.666% - 15px); }
.tile-grid--c5 .tile-card{ width: calc(20% - 15px); }
.tile-grid--c4 .tile-card{ width: calc(25% - 14px); }
.tile-grid--c3 .tile-card{ width: calc(33.333% - 12px); }
.tile-grid--c2 .tile-card{ width: calc(50% - 9px); }

/* Keep 5/6 columns visually tidy (spread across row) */
.tile-grid--c6,
.tile-grid--c5{
  justify-content: space-between;
}

/* ---------------------------------------------------------
   TILE 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--logo{ padding-top: 62%; }  /* logo tiles (slightly taller) */

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

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

/* For logo tiles: keep full logo visible */
.tile-img--contain{
  object-fit: contain;
  background: #fff;
}

/* ---------------------------------------------------------
   CAPTIONS (only used on motion tiles here)
--------------------------------------------------------- */

.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;
}

/* 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);
}

/* ---------------------------------------------------------
   MODALS
   (These classes are used by ug.js — keep names identical
   to your social.css so behaviour matches.)
--------------------------------------------------------- */

.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; }

/* ---------------------------------------------------------
   RESPONSIVE COLUMN FALLBACKS
--------------------------------------------------------- */

@media (max-width: 1100px){
  /* bring dense rows down a notch */
  .tile-grid--c6 .tile-card{ width: calc(33.333% - 12px); } /* 3-up */
  .tile-grid--c5 .tile-card{ width: calc(33.333% - 12px); } /* 3-up */
}

@media (max-width: 980px){
  .tile-grid--c4 .tile-card{ width: calc(50% - 9px); }      /* 2-up */
  .tile-grid--c3 .tile-card{ width: calc(50% - 9px); }      /* 2-up */
}

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

  .tile-grid--c6 .tile-card,
  .tile-grid--c5 .tile-card,
  .tile-grid--c4 .tile-card,
  .tile-grid--c3 .tile-card,
  .tile-grid--c2 .tile-card{
    width: 100%;
  }

  .tile-box--land{ padding-top: 62%; }
  .tile-box--logo{ padding-top: 72%; }
}



