* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f7fa;
    color: #1a1a1a;
}

/* ========== FULL GALLERY PAGE ========== */
.gallery-page {
    min-height: 100vh;
    padding: 4rem 5%;
    background: linear-gradient(135deg, #f5f7fa 0%, #e0e4ea 50%, #f5f7fa 100%);
    margin-top: 100px;
}

.gallery-page-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 1s ease;
}

.gallery-page-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #333 0%, #0077b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.gallery-page-subtitle {
    color: #555;
    font-size: 1.25rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 4/3;
    background: rgba(245, 247, 250, 0.5);
    border: 2px solid rgba(0, 123, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    animation: fadeInUp 0.8s ease backwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }

.gallery-item:hover {
    border-color: #0077b6;
    box-shadow: 0 15px 50px rgba(0, 123, 255, 0.3);
    transform: translateY(-10px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(245, 247, 250, 0.9) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-info {
    color: #1a1a1a;
}

.gallery-item-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #0077b6;
}

.gallery-item-caption {
    font-size: 0.875rem;
    color: #555;
}

.gallery-item-zoom {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: rgba(0, 123, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0077b6;
    font-size: 1.25rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-item-zoom {
    opacity: 1;
    transform: scale(1);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.pagination-btn {
    width: 50px;
    height: 50px;
    background: rgba(245, 247, 250, 0.8);
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 10px;
    color: #0077b6;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover {
    background: rgba(0, 123, 255, 0.1);
    border-color: #0077b6;
    transform: translateY(-3px);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #0077b6 0%, #00aaff 100%);
    color: #f5f7fa;
    border-color: #0077b6;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 250, 250, 0.95);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 123, 255, 0.3);
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(0, 123, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    color: #0077b6;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 123, 255, 0.3);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 123, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    color: #0077b6;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(0, 123, 255, 0.3);
}

.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }

/* Responsive */
@media (min-width: 768px) {
    .gallery-preview-grid { grid-template-columns: repeat(4, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .gallery-preview-title { font-size: 3rem; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

@media (min-width: 1440px) {
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767px) {
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: 10px; right: 10px; }
}
