/* SK Gallery Frontend Styles */

/* Album View (gallery-1.png style) */
.sk-gallery-album-view {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.sk-gallery-year-section {
    margin-bottom: 40px;
}

.sk-gallery-year-section h3 {
    text-align: center;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.sk-gallery-year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.sk-gallery-album {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.sk-gallery-album:hover {
    transform: translateY(-5px);
}

.sk-gallery-album-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.sk-gallery-album-thumb {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sk-gallery-album:hover .sk-gallery-album-thumb {
    transform: scale(1.05);
}

.sk-gallery-album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 115, 170, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sk-gallery-album:hover .sk-gallery-album-overlay {
    opacity: 1;
}

.sk-view-gallery {
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 4px;
}

.sk-gallery-album-title {
    padding: 15px;
    margin: 0;
    background: white;
    text-align: center;
    font-size: 18px;
    color: #333;
}

/* Single Gallery (gallery-2.png style) */
.sk-single-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.sk-gallery-header {
    text-align: center;
    /*margin-bottom: 40px;*/
    padding-bottom: 20px;
    /*border-bottom: 2px solid #eee;*/
}

.sk-gallery-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    display: none;
}

.sk-gallery-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.sk-gallery-images-grid {
    display: grid;
    gap: 20px;
}

.sk-gallery-images-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.sk-gallery-images-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.sk-gallery-images-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.sk-gallery-images-grid[data-columns="5"] {
    grid-template-columns: repeat(5, 1fr);
}

.sk-gallery-images-grid[data-columns="6"] {
    grid-template-columns: repeat(6, 1fr);
}

.sk-gallery-image-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.sk-gallery-image-item:hover {
    transform: scale(1.03);
}

.sk-gallery-lightbox-trigger {
    display: block;
    cursor: pointer;
}

.sk-gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.sk-image-caption {
    padding: 10px;
    background: white;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.sk-no-images {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

/* Lightbox Styles */
.sk-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
}

.sk-lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.sk-lightbox-content {
    position: relative;
}

.sk-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1000000;
}

.sk-lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

.sk-lightbox-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.sk-lightbox-prev,
.sk-lightbox-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.sk-lightbox-prev:hover,
.sk-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.sk-lightbox-counter {
    position: absolute;
    top: -35px;
    left: 0;
    color: white;
    font-size: 14px;
}