/* Shared editorial gallery for Office routes. Images and copy come from DLE. */
.office-screenshot-gallery,
.office-screenshot-gallery * { box-sizing: border-box; }

.office-screenshot-gallery {
  padding: clamp(48px, 5vw, 72px) 0;
  color: #202a36;
  background: transparent;
  box-shadow: inset 0 1px 0 #e6e8e9;
}

.office-screenshot-gallery__head {
  max-width: 850px;
  margin-bottom: 26px;
}

.office-screenshot-gallery .office-screenshot-gallery__head h2 {
  margin: 0;
  color: #172638;
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.2;
  text-wrap: balance;
}

.office-screenshot-gallery__description {
  margin: 12px 0 0;
  color: #596979;
  font-size: 15px;
  line-height: 1.65;
}

.office-screenshot-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.office-screenshot-gallery__item,
.office-screenshot-gallery__feature { min-width: 0; margin: 0; }

.office-screenshot-gallery__image-link,
.office-screenshot-gallery__feature-link {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid #dfe5e9;
  border-radius: 4px;
  background: #f5f7f8;
}

.office-screenshot-gallery__image-link {
  aspect-ratio: 7 / 5;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.office-screenshot-gallery__image-link img,
.office-screenshot-gallery__feature-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.office-screenshot-gallery__feature-link { max-width: 900px; }
.office-screenshot-gallery__feature-link img { height: auto; }
.office-screenshot-gallery__image-link img { object-fit: cover; }

.office-screenshot-gallery__feature-link:is(:hover,:focus-visible) { border-color: #9eb4c9; }
.office-screenshot-gallery__image-link:hover { outline: 1px solid #9eb4c9; outline-offset: 2px; }

.office-screenshot-gallery__image-link:focus-visible,
.office-screenshot-gallery__feature-link:focus-visible,
.office-screenshot-gallery__view:focus-visible {
  outline: 2px solid var(--catalog-accent, #286ea8);
  outline-offset: 3px;
}

.office-screenshot-gallery__item figcaption,
.office-screenshot-gallery__feature figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 12px 2px 0;
  color: #647384;
  font-size: 13px;
  line-height: 1.45;
}

.office-screenshot-gallery__caption { display: grid; gap: 2px; }
.office-screenshot-gallery__item figcaption strong {
  color: #213044;
  font-size: 15px;
  font-weight: 600;
}

.office-screenshot-gallery__view {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #276895;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.office-screenshot-gallery__view:is(:hover,:focus-visible) { text-decoration: underline; }
.office-screenshot-gallery__view > span { font-size: 16px; font-weight: 400; line-height: 1; }

.office-screenshot-gallery__programs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: -8px 0 20px;
  padding: 0;
  color: #5f6d7c;
  font-size: 13px;
  list-style: none;
}

.office-screenshot-gallery__programs li + li::before {
  content: "·";
  margin-right: 16px;
  color: #9da9b5;
}

/* Older DLE HTML copies retain the former overlay markers until refreshed. */
.office-screenshot-gallery__eyebrow,
.office-screenshot-gallery__expand,
.office-screenshot-gallery__open { display: none; }

@media (max-width: 900px) {
  .office-screenshot-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .office-screenshot-gallery { padding: 44px 0 52px; }
  .office-screenshot-gallery__head { margin-bottom: 22px; }
  .office-screenshot-gallery__description { font-size: 14px; line-height: 1.6; }
  .office-screenshot-gallery__grid { grid-template-columns: 1fr; gap: 25px; }
  .office-screenshot-gallery__item figcaption,
  .office-screenshot-gallery__feature figcaption { padding-top: 10px; }
}
