/* gallery.css */

/* Flexbox Order Definitions */
.title-wrapper {
    order: 1;
}
.filter-wrapper {
    order: 2;
}
.gallery-wrapper {
    order: 3;
}
.back-to-top-wrapper {
    order: 4;
}
body {
    background-color: #f8f9fa;
    color: #333;
}

.page-content {
    display: flex;
    flex-direction: column;
}


/* Title Styles */
.title-wrapper {
    margin-top: 15px;
    
}

.page-title {
    text-align: center;
    color: var(--color-primary);
    font-size: 2.5em;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.3));
    
    
    padding: 20px;
}
.page-title-divider {
    width: 40%;
    height: 3px;
    background-color: var(--color-secondary);
    margin: 3px auto 8px auto;
    filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.3));
    opacity: 1;
}
.page-sub-title {
    font-size: 0.6em;
    color: var(--color-secondary);
}

/* Filter Bar Styles */
.filter-wrapper {
    margin-top: 15px;
}

.filter-bar {
    display: flex;
    justify-content: center;
}

.filter-bar select {
    padding: 10px;
    border: 1px solid var(--color-secondary);
    border-radius: 5px;
    background-color: white;
    color: var(--color-secondary);
    font-size: 1em;
}

.filter-bar select:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Gallery Styles */
.gallery-wrapper {
    padding: 20px;
}

.gallery-container {
    column-count: 3;
    column-gap: 20px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    display: block;
}

.gallery-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-info {
    transform: translateY(0);
}

.gallery-item-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 5px;
}

.gallery-item-description {
    font-size: 0.9em;
}

/* Back to Top Button Styles */
.back-to-top-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.back-to-top {
    background: var(--color-primary);
    color: white;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .gallery-container {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        column-count: 1;
    }
}