/* Tailwind CSS Custom Styles */
@layer utilities {
    .text-shadow {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    .transition-all-300 {
        transition: all 0.3s ease;
    }
    .album-card:hover .album-overlay {
        opacity: 1;
    }
    .gallery-item:hover {
        transform: scale(1.05);
    }
    .filter-active {
        background-color: theme('colors.primary');
        color: white;
    }
    .award-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .award-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }
    .gallery-item {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .gallery-item:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }
    .modal {
        display: none;
        position: fixed;
        z-index: 100;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.9);
    }
    .modal-content {
        margin: auto;
        display: block;
        max-width: 90%;
        max-height: 90%;
    }
    .close {
        position: absolute;
        top: 20px;
        right: 30px;
        font-size: 30px;
        color: white;
        cursor: pointer;
    }
    .modal-caption {
        margin: auto;
        display: block;
        width: 80%;
        max-width: 700px;
        text-align: center;
        color: #ccc;
        padding: 10px 0;
        height: 150px;
    }
    .edit-overlay {
        position: absolute;
        top: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 5px;
        cursor: pointer;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .gallery-item:hover .edit-overlay {
        opacity: 1;
    }
    .upload-modal {
        display: none;
        position: fixed;
        z-index: 101;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.5);
    }
    .upload-modal-content {
        background-color: #fefefe;
        margin: 15% auto;
        padding: 20px;
        border: 1px solid #888;
        width: 80%;
        max-width: 500px;
        border-radius: 8px;
    }
    .upload-close {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
    }
    .upload-close:hover,
    .upload-close:focus {
        color: black;
        text-decoration: none;
    }
    .custom-file-upload {
        border: 1px solid #ccc;
        display: inline-block;
        padding: 6px 12px;
        cursor: pointer;
        background-color: #f8f9fa;
        border-radius: 4px;
        margin-top: 10px;
    }
    .custom-file-upload:hover {
        background-color: #e9ecef;
    }
    #file-input {
        display: none;
    }
    .admin-controls {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 50;
    }
    .add-photo-btn {
        background-color: theme('colors.primary');
        color: white;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 24px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        transition: all 0.3s ease;
    }
    .add-photo-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    }
    .timeline-container {
        position: relative;
    }
    .timeline-container::after {
        content: '';
        position: absolute;
        width: 6px;
        background-color: theme('colors.primary');
        top: 0;
        bottom: 0;
        left: 50%;
        margin-left: -3px;
    }
    .timeline-item {
        padding: 10px 40px;
        position: relative;
        width: 50%;
        box-sizing: border-box;
    }
    .timeline-item::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 25px;
        background-color: white;
        border: 4px solid theme('colors.secondary');
        top: 15px;
        border-radius: 50%;
        z-index: 1;
    }
    .timeline-left {
        left: 0;
    }
    .timeline-right {
        left: 50%;
    }
    .timeline-left::after {
        right: -17px;
    }
    .timeline-right::after {
        left: -17px;
    }
    .timeline-content {
        padding: 20px 30px;
        background-color: white;
        position: relative;
        border-radius: 6px;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    }
    @media screen and (max-width: 768px) {
        .timeline-container::after {
            left: 31px;
        }
        .timeline-item {
            width: 100%;
            padding-left: 70px;
            padding-right: 25px;
        }
        .timeline-item::after {
            left: 15px;
        }
        .timeline-left::after, .timeline-right::after {
            left: 15px;
        }
        .timeline-right {
            left: 0;
        }
    }
    .page-section {
        display: none;
    }
    .page-section.active {
        display: block;
    }
    .nav-link {
        transition: all 0.3s ease;
    }
    .nav-link.active {
        color: theme('colors.primary');
        font-weight: 600;
    }
}
