/* ========================================
   GALLERY.CSS - Gallery Page Styles
   Image Grid, Categories, Image Modal
   ======================================== */

/* ===== GALLERY FULL PAGE ===== */
.gallery-full {
  background: transparent;
}

.gallery-category {
  margin-bottom: 5rem;
}

.gallery-category__header {
  text-align: center;
  margin-bottom: 3rem;
}

.gallery-category__title {
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.gallery-category__description {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.gallery__grid,
.gallery-full__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-large);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__overlay h4 {
  color: var(--white);
  margin: 0;
  font-size: 1.3rem;
}

/* ===== IMAGE MODAL ===== */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-modal.show {
  opacity: 1;
  visibility: visible;
}

.image-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.image-modal__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-modal.show .image-modal__content {
  transform: scale(1);
}

.image-modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.image-modal__close:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.image-modal__image {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-medium);
}

.image-modal__caption {
  padding: 1.5rem;
  background: var(--white);
  text-align: center;
}

.image-modal__caption h4 {
  font-family: 'Amatic SC', 'Arial Black', sans-serif;
  font-size: var(--h3-font-size);
  color: var(--brand-primary);
  margin-bottom: 0;
  line-height: 1.2;
}

/* ===== COMPREHENSIVE MOBILE RESPONSIVE STYLES ===== */

/* Page Header Mobile Optimization */
@media screen and (max-width: 768px) {
  .page-header {
    padding: 6rem 0 3rem;
  }
  
  .page-header__title {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
  }
  
  .page-header__subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }
}

@media screen and (max-width: 480px) {
  .page-header {
    padding: 5rem 0 2.5rem;
  }
  
  .page-header__title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .page-header__subtitle {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }
}

/* Gallery Container Mobile Optimization */
@media screen and (max-width: 1024px) {
  .gallery-container {
    padding: 0 1.5rem;
  }
  
  .gallery-full__grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
  }
}

@media screen and (max-width: 768px) {
  .gallery-full {
    padding: 3rem 0;
  }
  
  .gallery-container {
    padding: 0 1rem;
  }
  
  .gallery-category {
    margin-bottom: 3.5rem;
  }
  
  .gallery-category__header {
    margin-bottom: 2rem;
  }
  
  .gallery-category__title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }
  
  .gallery-category__description {
    font-size: 0.95rem;
    padding: 0 1rem;
  }
  
  .gallery-full__grid,
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .gallery-item {
    border-radius: 12px;
  }
  
  .gallery-item__overlay {
    padding: 1.25rem;
  }
  
  .gallery-item__overlay h4 {
    font-size: 1.15rem;
  }
  
  .gallery-item__overlay p {
    font-size: 0.85rem;
  }
  
  /* Image Modal */
  .image-modal__content {
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 12px;
  }
  
  .image-modal__image {
    max-height: 70vh;
    border-radius: 12px;
  }
  
  .image-modal__caption {
    padding: 1.25rem;
  }
  
  .image-modal__caption h4 {
    font-size: 1.75rem;
  }
  
  .image-modal__close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 480px) {
  .gallery-full {
    padding: 2.5rem 0;
  }
  
  .gallery-container {
    padding: 0 0.75rem;
  }
  
  .gallery-category {
    margin-bottom: 3rem;
  }
  
  .gallery-category__header {
    margin-bottom: 1.5rem;
  }
  
  .gallery-category__title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }
  
  .gallery-category__description {
    font-size: 0.9rem;
    padding: 0 0.5rem;
    line-height: 1.5;
  }
  
  .gallery-full__grid,
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .gallery-item {
    border-radius: 10px;
  }
  
  .gallery-item__overlay {
    padding: 1rem;
  }
  
  .gallery-item__overlay h4 {
    font-size: 1.05rem;
  }
  
  .gallery-item__overlay p {
    font-size: 0.8rem;
    margin-top: 0.25rem;
  }
  
  /* Image Modal */
  .image-modal {
    padding: 0.5rem;
  }
  
  .image-modal__content {
    max-width: 98vw;
    max-height: 98vh;
    border-radius: 10px;
  }
  
  .image-modal__image {
    max-height: 75vh;
    border-radius: 10px;
  }
  
  .image-modal__caption {
    padding: 1rem;
  }
  
  .image-modal__caption h4 {
    font-size: 1.5rem;
  }
  
  .image-modal__close {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }
}

/* Footer Mobile Optimization */
@media screen and (max-width: 768px) {
  .footer {
    padding: 2.5rem 0 1rem;
  }
  
  .footer .container {
    padding: 0 1.5rem;
  }
  
  .footer__content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 1rem;
  }
  
  .footer__logo {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .footer__logo-img {
    height: 65px;
    max-width: 220px;
  }
  
  .footer__description {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }
  
  .footer__social {
    gap: 0.75rem;
    justify-content: center;
  }
  
  .footer__title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .footer__contact-item {
    margin-bottom: 1rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }
  
  .footer__contact-item span {
    font-size: 0.95rem;
  }
  
  .footer__map-container {
    max-width: 100%;
  }
  
  .footer__copy {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
  }
  
  .footer__copy p {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 480px) {
  .footer {
    padding: 2rem 0 0.75rem;
  }
  
  .footer .container {
    padding: 0 1rem;
  }
  
  .footer__content {
    gap: 2rem;
    padding: 0 0.5rem;
  }
  
  .footer__logo {
    padding: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .footer__logo-img {
    height: 55px;
    max-width: 180px;
  }
  
  .footer__description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
  }
  
  .footer__social {
    gap: 0.6rem;
  }
  
  .footer__social-link {
    width: 40px;
    height: 40px;
  }
  
  .social-icon {
    width: 18px;
    height: 18px;
  }
  
  .footer__title {
    font-size: 1rem;
  }
  
  .footer__contact-item {
    font-size: 0.9rem;
  }
  
  .footer__contact-item i {
    font-size: 0.95rem;
  }
  
  .footer__copy {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }
  
  .footer__copy p {
    font-size: 0.85rem;
  }
}
