/* Shared service-gallery presentation and image detail overlay. */
.arty-section-tabs {
  display: grid;
  gap: 1.5rem;
}

.arty-section-tab-list {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border: 1px solid rgba(255, 196, 0, 0.28);
  background: #0d0d0d;
}

.arty-section-tab {
  appearance: none;
  flex: 1 0 auto;
  min-height: 52px;
  padding: 0.85rem 1.15rem;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.arty-section-tab[aria-selected="true"] {
  background: #FFC400;
  color: #050505;
}

.arty-section-panel[hidden] {
  display: none;
}

.arty-section-panel {
  display: grid;
  gap: 2.4rem;
}

.arty-uniform-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.arty-uniform-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid rgba(255, 196, 0, 0.22);
  background: #111;
  overflow: hidden;
}

.arty-uniform-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  background: #080808;
  cursor: zoom-in;
}

.arty-uniform-card figcaption {
  flex: 1;
  min-height: 58px;
  padding: 0.72rem 0.8rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-transform: uppercase;
}

.arty-original-gallery-copy {
  border: 1px solid rgba(255, 196, 0, 0.25);
  background: #0d0d0d;
}

.arty-original-gallery-copy > summary {
  min-height: 52px;
  padding: 1rem;
  color: #FFC400;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.arty-original-gallery-copy-inner {
  display: grid;
  gap: 2.4rem;
  padding: 0 1rem 1rem;
}

.arty-original-gallery-copy .service-visual,
.arty-original-gallery-copy .service-visual-note,
.arty-original-gallery-copy .project-grid,
.arty-original-gallery-copy .recent-gallery,
.arty-original-gallery-copy .uv-gallery,
.arty-original-gallery-copy .arty-view-details {
  display: none !important;
}

.uv-gallery,
.recent-gallery {
  align-items: stretch;
}

.uv-gallery figure,
.recent-gallery figure,
.project-shot {
  display: flex;
  flex-direction: column;
  background: #111;
  border: 1px solid rgba(255, 196, 0, 0.22);
  overflow: hidden;
}

.uv-gallery figure img,
.recent-gallery figure img,
.project-shot img {
  width: 100%;
  aspect-ratio: 4 / 3 !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #0a0a0a;
}

.uv-gallery figcaption,
.recent-gallery figcaption,
.project-shot figcaption {
  flex: 1;
}

.arty-view-details {
  appearance: none;
  width: 100%;
  min-height: 44px;
  padding: 0.78rem 0.85rem;
  border: 0;
  border-top: 1px solid rgba(255, 196, 0, 0.22);
  background: transparent;
  color: #FFC400;
  font-family: 'Barlow', sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.arty-view-details:hover,
.arty-view-details:focus-visible {
  background: #FFC400;
  color: #050505;
}

.visual-feature > .arty-view-details {
  width: auto;
  margin-top: 0.8rem;
  border: 1px solid rgba(255, 196, 0, 0.35);
}

.arty-service-modal[hidden] {
  display: none;
}

.arty-service-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.92);
  overflow-y: auto;
}

.arty-service-modal-dialog {
  width: min(1500px, calc(100vw - 2rem));
  height: min(920px, calc(100vh - 2rem));
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.55fr);
  background: #111;
  border: 1px solid #FFC400;
  overflow: hidden;
}

.arty-service-modal-image-wrap {
  display: grid;
  place-items: center;
  min-height: 0;
  background: #050505;
}

.arty-service-modal-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 2rem);
  object-fit: contain;
}

.arty-service-modal-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  overflow-y: auto;
}

.arty-service-modal-close {
  appearance: none;
  align-self: flex-end;
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #f5f5f0;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.arty-service-modal-label {
  margin: 1.4rem 0 0.5rem;
  color: #FFC400;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.arty-service-modal-title {
  margin: 0 0 1rem;
  color: #f5f5f0;
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.arty-service-modal-description {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.65;
}

.arty-service-modal-context {
  margin-top: auto;
  padding-top: 1.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.arty-modal-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .arty-uniform-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .arty-uniform-gallery {
    grid-template-columns: 1fr;
  }

  .arty-section-tab-list {
    margin-inline: -0.25rem;
  }

  .arty-service-modal {
    align-items: start;
    padding: 0.75rem;
  }

  .arty-service-modal-dialog {
    grid-template-columns: 1fr;
    width: calc(100vw - 1.5rem);
    height: auto;
    max-height: calc(100vh - 1.5rem);
    overflow-y: auto;
  }

  .arty-service-modal-image-wrap {
    min-height: 260px;
  }

  .arty-service-modal-image {
    height: auto;
    max-height: 55vh;
  }
}
