.video-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 1180px; margin: 0 auto; align-items: start; }
.video-card { background: #161616; border: 1px solid #303030; border-radius: 14px; overflow: hidden; }
.video-card video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #080808; object-fit: contain; }
.video-card.is-vertical video { aspect-ratio: 9 / 16; width: 100%; max-width: 340px; margin-inline: auto; }
.video-card-body { padding: 22px 24px 24px; }
.video-card-title { font-size: 18px; font-weight: 800; margin: 0 0 8px; }
.video-card-meta { font-size: 15px; color: #a5adba; line-height: 1.65; }
.video-group-heading { max-width: 760px; margin: 64px auto 32px; text-align: center; }
.video-group-heading h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; margin: 10px 0 12px; }
.video-grid-portrait { max-width: 800px; }
.gallery-shell { max-width: 1232px; margin: 0 auto; padding: 0 24px; }
.photo-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.photo-tile { position: relative; display: block; width: 100%; padding: 0; border: 1px solid #3f444c; border-radius: 12px; overflow: hidden; background: #161616; color: #fff; text-align: left; }
.photo-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .2s; }
.photo-tile:hover img { transform: scale(1.025); }
.photo-tile span { display: block; padding: 14px 16px; font-size: 13px; line-height: 1.5; }
.photo-tile .photo-hint { position: absolute; right: 12px; top: 12px; border-radius: 6px; padding: 6px 10px; background: #0d0d0de6; color: white; }
.photo-tile .photo-failure { position: absolute; inset: 0 0 auto; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 24px; background: #161616; text-align: center; }
.photo-skeleton { aspect-ratio: 4 / 3; border-radius: 12px; background: linear-gradient(100deg, #161616 25%, #262626 50%, #161616 75%); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.gallery-status { text-align: center; margin-bottom: 24px; min-height: 24px; }
.gallery-actions { display: flex; justify-content: center; margin-top: 32px; }
.photo-viewer { position: fixed; inset: 0; width: min(1200px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 20px; margin: auto; color: #fff; background: #111; border: 1px solid #454545; border-radius: 14px; }
.photo-viewer::backdrop { background: #000e; }
.viewer-toolbar, .viewer-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.viewer-toolbar { margin-bottom: 16px; }
.viewer-stage { position: relative; display: grid; place-items: center; min-height: 160px; height: min(65dvh, 760px); background: #080808; }
.viewer-stage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.viewer-stage p { padding: 24px; text-align: center; }
.viewer-footer { margin-top: 16px; }
#viewer-caption { flex: 1; text-align: center; font-size: 14px; color: #c6cbd3; }
#viewer-count { font-size: 14px; color: #c6cbd3; }
@media (min-width: 640px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .photo-viewer { width: calc(100% - 16px); padding: 12px; max-height: calc(100dvh - 16px); }
  .viewer-stage { height: 55dvh; }
  .viewer-footer { flex-wrap: wrap; gap: 8px; }
  #viewer-caption { order: -1; flex-basis: 100%; }
  .viewer-footer .btn-outline { padding: 10px 16px; }
}
