/**
 * Paris 2024 Media Gallery Styles
 * For Zeta CMS integration
 *
 * WCAG 2.2 AA compliant
 */

.paris-gallery-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 100vh;
  overflow: hidden;
  background-color: #161616;
}

#paris-gallery-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Focus styles for accessibility - meets WCAG 2.2 AA contrast */
#paris-gallery-iframe:focus {
  outline: 3px solid #069de0;
  outline-offset: -3px;
}

#paris-gallery-iframe:focus-visible {
  outline: 3px solid #069de0;
  outline-offset: -3px;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Keyboard hint overlay - hidden by default via HTML hidden attribute */
.gallery-keyboard-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(22, 22, 22, 0.9);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  align-items: center;
  gap: 16px;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Show as flex when not hidden */
.gallery-keyboard-hint:not([hidden]) {
  display: flex;
}

.gallery-keyboard-hint__dismiss {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.gallery-keyboard-hint__dismiss:hover,
.gallery-keyboard-hint__dismiss:focus {
  opacity: 1;
}

.gallery-keyboard-hint__dismiss:focus {
  outline: 2px solid #069de0;
  outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .paris-gallery-wrapper {
    min-height: 500px;
  }

  .gallery-keyboard-hint {
    bottom: 10px;
    padding: 10px 16px;
    font-size: 12px;
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .gallery-keyboard-hint__dismiss {
    transition: none;
  }
}