/**
 * Wrestler Photos Gallery with Lightbox Styles
 * Upload to: /wp-content/themes/extendable-child/wrestler-photos.css
 */

/* ================== WRESTLER PHOTOS SECTION ================== */

/* Section wrapper */
.wrestler-photos-section {
  margin: 0px 0 30px 0;
  font-family: 'sofia-sans', sans-serif;
}

/* Title styling - matches original */
.wrestler-photos-title {
  display: block;
  font-family: 'sofia-sans', sans-serif;
  font-size: 26px !important;
  color: #E4DCD6;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 20px 0 -.5rem 0;
  font-weight: 500;
  background: none;
}

/* Photo Grid - maintains 3-column layout like original */
.wrestler-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

/* Individual photo items */
.wrestler-photos-item {
  position: relative;
  aspect-ratio: 9 / 14;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #1A242E;
}

.wrestler-photos-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Thumbnail images */
.wrestler-photos-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.wrestler-photos-item:hover .wrestler-photos-thumbnail {
  transform: scale(1.05);
}

/* Add overlay effect on hover */
.wrestler-photos-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(206, 229, 242, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.wrestler-photos-item:hover::after {
  opacity: 1;
}

/* ================== LIGHTBOX MODAL ================== */

/* Modal overlay */
.wrestler-photos-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.wrestler-photos-modal.wrestler-photos-modal-open {
  opacity: 1;
  visibility: visible;
}

/* Modal backdrop */
.wrestler-photos-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 19, 0.95);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

/* Modal content container */
.wrestler-photos-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

/* Close button */
.wrestler-photos-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(206, 229, 242, 0.2);
  color: #CEE5F2;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wrestler-photos-close:hover {
  background: rgba(206, 229, 242, 0.3);
  transform: scale(1.1);
}

/* Carousel container */
.wrestler-photos-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image container */
.wrestler-photos-image-container {
  position: relative;
  max-width: 80vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal image */
.wrestler-photos-modal-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Navigation buttons */
.wrestler-photos-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: none;
  background: rgba(206, 229, 242, 0.2);
  color: #CEE5F2;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wrestler-photos-nav:hover {
  background: rgba(206, 229, 242, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.wrestler-photos-prev {
  left: -70px;
}

.wrestler-photos-next {
  right: -70px;
}

/* Photo counter */
.wrestler-photos-counter {
  margin-top: 20px;
  color: #CEE5F2;
  font-size: 14px;
  font-weight: 500;
  background: rgba(26, 36, 46, 0.8);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(5px);
}

/* ================== RESPONSIVE DESIGN ================== */

/* Tablet */
@media (max-width: 768px) {
  .wrestler-photos-grid {
    gap: 0.75rem;
  }

  .wrestler-photos-modal-content {
    max-width: 95vw;
    max-height: 95vh;
  }

  .wrestler-photos-image-container {
    max-width: 90vw;
    max-height: 75vh;
  }

  .wrestler-photos-close {
    top: -40px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 20px;
  }

  .wrestler-photos-nav {
    width: 45px;
    height: 45px;
  }

  .wrestler-photos-prev {
    left: -60px;
  }

  .wrestler-photos-next {
    right: -60px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .wrestler-photos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .wrestler-photos-title {
    font-size: 20px;
    margin: 15px 0 0 0;
  }

  .wrestler-photos-image-container {
    max-width: 95vw;
    max-height: 70vh;
  }

  .wrestler-photos-close {
    top: -35px;
    right: 5px;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .wrestler-photos-nav {
    width: 40px;
    height: 40px;
  }

  .wrestler-photos-prev {
    left: -50px;
  }

  .wrestler-photos-next {
    right: -50px;
  }

  .wrestler-photos-counter {
    font-size: 12px;
    padding: 6px 12px;
    margin-top: 15px;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .wrestler-photos-nav {
    display: none !important;
  }

  .wrestler-photos-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(10, 14, 19, 0.8);
  }

  .wrestler-photos-image-container {
    max-width: 100vw;
    max-height: 75vh;
  }
}

/* ================== ACCESSIBILITY ================== */

/* Focus styles for keyboard navigation */
.wrestler-photos-thumbnail:focus,
.wrestler-photos-close:focus,
.wrestler-photos-nav:focus {
  outline: 2px solid #CEE5F2;
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .wrestler-photos-item,
  .wrestler-photos-thumbnail,
  .wrestler-photos-modal,
  .wrestler-photos-close,
  .wrestler-photos-nav {
    transition: none;
  }

  .wrestler-photos-item:hover .wrestler-photos-thumbnail {
    transform: none;
  }

  .wrestler-photos-item:hover {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .wrestler-photos-item::after {
    background: rgba(255, 255, 255, 0.3);
  }

  .wrestler-photos-close,
  .wrestler-photos-nav {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: 1px solid white;
  }
}

/* ================== MANAGER PHOTOS SECTION - IDENTICAL TO WRESTLER ================== */

/* Section wrapper */
.manager-photos-section {
  margin: 20px 0 30px 0;
  font-family: 'sofia-sans', sans-serif;
}

/* Title styling - matches original */
.manager-photos-title {
  display: block;
  font-family: 'sofia-sans', sans-serif;
  font-size: 26px !important;
  color: #E4DCD6;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 20px 0 -.5rem 0;
  font-weight: 500;
  background: none;
}

/* Photo Grid - maintains 3-column layout like original */
.manager-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

/* Individual photo items */
.manager-photos-item {
  position: relative;
  aspect-ratio: 9 / 14;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #1A242E;
}

.manager-photos-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Thumbnail images */
.manager-photos-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.manager-photos-item:hover .manager-photos-thumbnail {
  transform: scale(1.05);
}

/* Add overlay effect on hover */
.manager-photos-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(206, 229, 242, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.manager-photos-item:hover::after {
  opacity: 1;
}

/* ================== MANAGER LIGHTBOX MODAL ================== */

/* Modal overlay */
.manager-photos-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.manager-photos-modal.manager-photos-modal-open {
  opacity: 1;
  visibility: visible;
}

/* Modal backdrop */
.manager-photos-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 19, 0.95);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

/* Modal content container */
.manager-photos-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

/* Close button */
.manager-photos-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(206, 229, 242, 0.2);
  color: #CEE5F2;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.manager-photos-close:hover {
  background: rgba(206, 229, 242, 0.3);
  transform: scale(1.1);
}

/* Carousel container */
.manager-photos-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image container */
.manager-photos-image-container {
  position: relative;
  max-width: 80vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal image */
.manager-photos-modal-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Navigation buttons */
.manager-photos-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: none;
  background: rgba(206, 229, 242, 0.2);
  color: #CEE5F2;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.manager-photos-nav:hover {
  background: rgba(206, 229, 242, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.manager-photos-prev {
  left: -70px;
}

.manager-photos-next {
  right: -70px;
}

/* Photo counter */
.manager-photos-counter {
  margin-top: 20px;
  color: #CEE5F2;
  font-size: 14px;
  font-weight: 500;
  background: rgba(26, 36, 46, 0.8);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(5px);
}

/* ================== MANAGER RESPONSIVE DESIGN ================== */

/* Tablet */
@media (max-width: 768px) {
  .manager-photos-grid {
    gap: 0.75rem;
  }

  .manager-photos-modal-content {
    max-width: 95vw;
    max-height: 95vh;
  }

  .manager-photos-image-container {
    max-width: 90vw;
    max-height: 75vh;
  }

  .manager-photos-close {
    top: -40px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 20px;
  }

  .manager-photos-nav {
    width: 45px;
    height: 45px;
  }

  .manager-photos-prev {
    left: -60px;
  }

  .manager-photos-next {
    right: -60px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .manager-photos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .manager-photos-title {
    font-size: 20px;
    margin: 15px 0 0 0;
  }

  .manager-photos-image-container {
    max-width: 95vw;
    max-height: 70vh;
  }

  .manager-photos-close {
    top: -35px;
    right: 5px;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .manager-photos-nav {
    width: 40px;
    height: 40px;
  }

  .manager-photos-prev {
    left: -50px;
  }

  .manager-photos-next {
    right: -50px;
  }

  .manager-photos-counter {
    font-size: 12px;
    padding: 6px 12px;
    margin-top: 15px;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .manager-photos-nav {
    display: none !important;
  }

  .manager-photos-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(10, 14, 19, 0.8);
  }

  .manager-photos-image-container {
    max-width: 100vw;
    max-height: 75vh;
  }
}

/* ================== MANAGER ACCESSIBILITY ================== */

/* Focus styles for keyboard navigation */
.manager-photos-thumbnail:focus,
.manager-photos-close:focus,
.manager-photos-nav:focus {
  outline: 2px solid #CEE5F2;
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .manager-photos-item,
  .manager-photos-thumbnail,
  .manager-photos-modal,
  .manager-photos-close,
  .manager-photos-nav {
    transition: none;
  }

  .manager-photos-item:hover .manager-photos-thumbnail {
    transform: none;
  }

  .manager-photos-item:hover {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .manager-photos-item::after {
    background: rgba(255, 255, 255, 0.3);
  }

  .manager-photos-close,
  .manager-photos-nav {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: 1px solid white;
  }
}