/* Gallery Styles */
.gallery-container {
    width: 100%;
    margin: 0;
    padding: 0 20px;
}

.gallery-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: flex-start;
    width: 100%;
}

.gallery-row img {
    height: auto;
    width: auto;
    object-fit: cover;
    transition: all 0.3s ease;
    cursor: pointer;
    filter: brightness(1);
}

.gallery-row img:hover {
    transform: none;
    filter: brightness(0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10;
    position: relative;
}

/* Image container for hover effects */
.image-container {
    position: relative;
    overflow: visible;
    z-index: 1;
}

.image-container:hover {
    z-index: 15;
}

/* Hover handled by JavaScript */

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(transparent, transparent 60%, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px 12px 12px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 20;
    transform: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.image-container:hover .image-overlay {
    transform: none;
}

.image-caption {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.3;
}

.image-meta {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.2;
}

.image-date {
    margin-bottom: 2px;
}

.image-time {
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 2px;
}

.image-location {
    font-style: italic;
} 

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    transition: width 0.3s ease, height 0.3s ease;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: none; /* Initially hidden */
}

.lightbox-info {
    margin-top: 16px;
    color: white;
    text-align: center;
    max-width: 600px;
}

.lightbox-caption {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.lightbox-meta {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.4;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* Loader and progress bar */
.lightbox-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.lightbox-progress-bar {
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    transition: width 0.1s linear;
}

/* Tag chips */
.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 9999px;
    border: 1px solid rgba(0,0,0,0.15);
    background: #fff;
    color: #3f3f3f;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tag-chip:hover {
    background: rgba(0,0,0,0.04);
}

.tag-chip.selected {
    background: #234e52; /* jungle-ish */
    color: #fff;
    border-color: #234e52;
} 