/* Native project carousels and legacy portfolio pages, scoped to the child. */
.az-project-carousel { position: relative; --az-project-accent: var(--namle-gold, var(--az-color-primary, #f5d083)); }
.az-project-track { --az-project-columns: min(3, var(--az-project-count, 3)); display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; scrollbar-width: none; }
.az-project-track::-webkit-scrollbar { display: none; }
.az-project-card { position: relative; display: block; flex: 0 0 calc((100% - (var(--az-project-columns) - 1) * 20px) / var(--az-project-columns)); min-width: 0; overflow: hidden; border-radius: 6px; scroll-snap-align: start; }
.az-project-card img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: filter .2s ease; }
.az-project-card:hover img { filter: brightness(1.08); }
.az-project-card:focus-visible { outline: 2px solid var(--az-project-accent); outline-offset: -3px; }
.az-project-card.has-placeholder span { position: absolute; inset: auto 16px 24px; color: #fff; text-align: center; font-family: var(--az-font-heading, inherit); }
#page .az-project-arrow, #page .az-project-gallery-arrow { display: grid; place-items: center; position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid #ffffff60; border-radius: 50%; background: #0008; color: #fff; cursor: pointer; }
#page .az-project-arrow[hidden], #page .az-project-gallery-arrow[hidden] { display: none; }
.az-project-arrow.is-prev, .az-project-gallery-arrow.is-prev { left: 12px; }
.az-project-arrow.is-next, .az-project-gallery-arrow.is-next { right: 12px; }
.az-project-arrow svg, .az-project-gallery-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#page .az-project-arrow:disabled { opacity: .3; cursor: default; }
#page .az-project-arrow:not(:disabled):hover, #page .az-project-gallery-arrow:hover { border-color: var(--az-project-accent, #f5d083); background: #000b; }
.az-project-page { padding-block: 40px 60px; background: var(--az-color-surface, #fff); color: var(--az-color-text, #424242); font-family: var(--az-font-main, Arial, sans-serif); }
.az-project-page h1, .az-project-page h2 { font-family: var(--az-font-heading, inherit); }
.az-project-page__layout { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr); gap: 36px; align-items: start; }
.az-project-summary { padding: 24px; border: 1px solid var(--az-color-border, #e5e5e5); border-radius: 8px; background: var(--az-color-surface, #fff); }
.az-project-summary__terms { margin-bottom: 20px; overflow-wrap: anywhere; }
.az-project-details { margin: 0; }
.az-project-details > div { padding-block: 14px; border-bottom: 1px solid var(--az-color-border, #e5e5e5); }
.az-project-details dt { font-weight: 600; }
.az-project-details dd { margin: 6px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.az-project-contact { margin-top: 24px; padding: 18px; border-radius: 6px; background: #f5d08326; }
.az-project-contact h2 { margin: 0 0 12px; font-size: 20px; }
.az-project-contact p { margin-bottom: 14px; }
.az-project-contact__links { display: flex; flex-wrap: wrap; gap: 12px; }
.az-project-contact__links a { display: inline-block; padding: 8px 12px; border-radius: 4px; background: var(--az-color-primary, #f5d083); color: #fff; text-decoration: none; }
.az-project-content { min-width: 0; }
.az-project-content > h1 { margin: 0 0 24px; }
.az-project-gallery { position: relative; margin-bottom: 28px; overflow: hidden; border-radius: 8px; background: #181d24; }
.az-project-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; }
.az-project-gallery img[hidden] { display: none; }
.az-project-gallery img:not([hidden]) { animation: az-project-fade .35s ease both; }
@keyframes az-project-fade { from { opacity: .3; } to { opacity: 1; } }
.az-slider-draggable { cursor: grab; touch-action: pan-y; }
.az-slider-draggable.is-dragging { cursor: grabbing; user-select: none; }
.az-slider-draggable img { user-select: none; }
.az-project-track.az-slider-draggable { touch-action: pan-x pan-y; }
.az-project-track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; }
#page .az-slider-autoplay { position: absolute; z-index: 4; left: 12px; bottom: 12px; display: grid; place-items: center; width: 34px; height: 34px; min-height: 0; margin: 0; padding: 0; border: 1px solid #ffffff60; border-radius: 50%; background: #0009; color: #fff; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
#page .az-slider-autoplay:hover { background: #000c; border-color: #fff; }
#page .az-slider-autoplay:focus-visible { outline: 2px solid var(--az-project-accent, #f5d083); outline-offset: 3px; }
#page .az-slider-autoplay[hidden] { display: none; }
.az-slider-autoplay svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.az-slider-play-icon { display: none; fill: currentColor; stroke: none; }
.az-slider-autoplay[data-paused="true"] .az-slider-play-icon { display: block; }
.az-slider-autoplay[data-paused="true"] .az-slider-pause-icon { display: none; }
.az-project-gallery__count { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 12px; background: #0009; color: #fff; font-size: 14px; }
.az-project-related { margin-top: 48px; }
.az-project-related > h2, .az-project-archive > h1 { margin-bottom: 24px; text-align: center; }
.az-project-archive__description { margin-bottom: 28px; }
.az-project-archive__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.az-project-archive__card { min-width: 0; }
.az-project-archive__card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.az-project-archive__card h2 { margin-top: 12px; font-size: 20px; }
.az-project-archive__pagination { margin-top: 32px; }
@media (max-width: 1000px) {
  .az-project-track { --az-project-columns: min(2, var(--az-project-count, 2)); }
  .az-project-page__layout { gap: 24px; }
  .az-project-archive__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 782px) { .az-project-page__layout { grid-template-columns: minmax(0, 1fr); } .az-project-content { grid-row: 1; } }
@media (max-width: 640px) {
  .az-project-track { --az-project-columns: 1; }
  .az-project-archive__grid { grid-template-columns: minmax(0, 1fr); }
  .az-project-page { padding-block: 28px 40px; }
}
@media (prefers-reduced-motion: reduce) { .az-project-card img, #page .az-slider-autoplay { transition: none; } .az-project-gallery img:not([hidden]) { animation: none; } }
