/* * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
            background: #f8f8f8;
            padding: 2rem 1rem;
            min-height: 100vh;
        } */

.container-video {
  max-width: 1200px;
  margin: 0 auto;
  reference: auto;
}

.header-videogallery {
  margin-bottom: 3rem;
  text-align: center;
}

.header-videogallery h1 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 0.3rem;
  margin-top: 0.8rem;
}

.header p {
  font-size: 16px;
  color: #666;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 0;
}

.video-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  border: 1px solid #666666;
  transition: all 300ms ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.video-card:hover {
  border-color: #d0d0d0;
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #999;
  font-weight: 500;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 300ms ease, transform 300ms ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.video-card:hover .play-button, .video-card:focus-within .play-button {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
  font-size: 28px;
  color: #1a1a1a;
  margin-left: 3px;
  font-weight: bold;
}

.video-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 40%, rgba(0, 0, 0, 0.95) 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.3px;
  transition: all 300ms ease;
}

.video-card:hover .video-title {
  padding-bottom: 24px;
  font-size: 19px;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  width: 95%;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  transform: scale(0.92);
  transition: transform 300ms ease;
}

.modal-backdrop.active .modal-content {
  transform: scale(1);
}

.modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  transition: all 200ms ease;
  z-index: 1001;
  font-weight: 300;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.modal-nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  transition: all 200ms ease;
  z-index: 1002;
}

.modal-nav-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.5);
}

.modal-nav-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.modal-nav-prev {
  left: 16px;
}

.modal-nav-next {
  right: 16px;
}

@media (max-width: 768px) {
  body {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .header {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .play-button {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 768px) {
  .play-icon {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .video-title {
    font-size: 13px;
    padding: 12px;
  }
}

@media (max-width: 768px) {
  .modal-nav-button {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .gallery-container {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 95%;
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .header p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .play-button {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .play-icon {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .video-title {
    font-size: 12px;
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .modal-close {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .modal-nav-button {
    width: 36px;
    height: 36px;
    font-size: 16px;
    left: 8px;
  }
}

@media (max-width: 480px) {
  .modal-nav-next {
    right: 8px;
  }
}

