/* Gallery Page Specific Styles */

/* Gallery Hero Section - Consistent with Dive Map */
.gallery-hero {
    position: relative;
    width: 100%;
    min-height: 400px;
    background: var(--gradient-ocean);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin: 0;
    padding: 100px 0 40px 0;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,50 Q300,0 600,50 T1200,50 V120 H0 Z" fill="rgba(255,255,255,0.05)"/></svg>') bottom center/cover no-repeat;
    opacity: 0.3;
}

.gallery-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.2);
    backdrop-filter: blur(1px);
}

.gallery-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 var(--spacing-md);
}

.gallery-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-hero p {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .gallery-hero {
        min-height: 300px;
        padding: 80px 0 30px 0;
    }
    
    .gallery-hero h1 {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }
    
    .gallery-hero p {
        font-size: var(--font-size-base);
    }
}

.gallery-filters {
    padding: 2rem 0;
    background: var(--light-gray);
    margin-top: 70px;
}

.filter-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.filter-header h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Enhanced intro text styling */
.intro-text {
    margin-bottom: 2.5rem;
}

.lead-text {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(0, 119, 190, 0.08), rgba(0, 183, 255, 0.05));
    border-radius: 15px;
    border-left: 4px solid var(--accent-color);
}

/* Description cards grid */
.description-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.description-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 119, 190, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.description-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    display: block;
}

.description-card p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.equipment-card {
    background: linear-gradient(135deg, rgba(0, 183, 255, 0.05), rgba(0, 119, 190, 0.03));
    border-left: 4px solid var(--accent-color);
}

.description-card strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Call to action styling */
.call-to-action {
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(0, 183, 255, 0.1), rgba(0, 119, 190, 0.05));
    border-radius: 25px;
    border: 2px solid rgba(0, 183, 255, 0.2);
}

.call-to-action p {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .filter-header h2 {
        font-size: 2rem;
    }
    
    .lead-text {
        font-size: 1.2rem;
        padding: 1rem 1.5rem;
    }
    
    .description-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .description-card {
        padding: 1.2rem;
    }
    
    .call-to-action {
        padding: 1rem 1.5rem;
    }
    
    .call-to-action p {
        font-size: 1rem;
    }
}

.photo-gallery {
    padding: 4rem 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Masonry-style grid items */
.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
    box-shadow: 0 5px 15px var(--shadow);
    opacity: 0;
    transform: translateY(30px);
}

.gallery-item.loaded {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow);
}

.gallery-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    align-self: flex-end;
    text-align: left;
    color: var(--white);
}

.gallery-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.gallery-location {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.2rem;
}

.gallery-date {
    font-size: 0.8rem;
    opacity: 0.8;
    font-style: italic;
}

.gallery-actions {
    align-self: flex-start;
    text-align: right;
}

.gallery-view-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid var(--white);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.gallery-view-btn:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: scale(1.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 119, 190, 0.8), rgba(64, 224, 208, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: var(--white);
    padding: 1rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gallery-location {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.gallery-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: center;
}

.gallery-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.load-more-container {
    text-align: center;
    padding: 2rem 0;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    margin: 5% auto;
    display: flex;
    flex-direction: column;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.lightbox-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.nav-btn {
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.lightbox-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.lightbox-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.lightbox-info p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

#lightbox-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.image-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

#lightbox-tags .tag {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.camera-tag {
    background: var(--accent-color) !important;
    color: var(--dark-gray) !important;
}

.settings-tag {
    background: var(--primary-color) !important;
    font-family: 'Courier New', monospace;
}

/* Featured Collections */
.featured-collections {
    padding: 80px 0;
    background: var(--light-gray);
}

.featured-collections h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-weight: 600;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.collection-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.collection-card:hover {
    transform: translateY(-10px);
}

.collection-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.collection-card:hover .collection-image img {
    transform: scale(1.1);
}

.collection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 119, 190, 0.8), rgba(64, 224, 208, 0.6));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.collection-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.collection-overlay p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.view-collection {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-collection:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Camera Gear */
.camera-gear {
    padding: 80px 0;
    background: var(--white);
}

.camera-gear h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.gear-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gear-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.gear-item {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.gear-item.featured-gear {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,119,190,0.3);
}

.gear-item.featured-gear .gear-icon {
    background: var(--white);
    color: var(--primary-color);
}

.gear-item.featured-gear h3 {
    color: var(--white);
}

.gear-item:hover {
    transform: translateY(-5px);
}

.gear-item.featured-gear:hover {
    transform: scale(1.05) translateY(-5px);
}

.gear-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.gear-icon i {
    font-size: 2rem;
    color: var(--white);
}

.gear-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.gear-item ul {
    list-style: none;
    text-align: left;
}

.gear-item li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.gear-item li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* Instagram Feed */
.instagram-feed {
    padding: 80px 0;
    background: var(--light-blue);
}

.instagram-feed h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.instagram-feed > .container > p {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 3rem;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.instagram-post {
    position: relative;
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.instagram-post:hover {
    transform: scale(1.05);
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-post:hover .instagram-overlay {
    opacity: 1;
}

.instagram-overlay i {
    font-size: 2rem;
    color: var(--white);
}

.instagram-cta {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .lightbox-content {
        width: 95%;
        height: 95%;
        margin: 2.5% auto;
    }
    
    .lightbox-navigation {
        padding: 0 10px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .lightbox-info {
        padding: 1rem;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
    }
    
    .gear-grid {
        grid-template-columns: 1fr;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
