/* Ana Wrapper */
.coa-gallery-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

/* Galeri Konteynerı */
.coa-gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
    margin-bottom: 30px;
}

/* Her bir resim öğesi */
.coa-gallery-item {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.coa-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* Thumbnail Wrapper */
.coa-thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 66.66%; /* 3:2 aspect ratio */
    overflow: hidden;
    cursor: pointer;
    background: #fff;
}

/* Galeri Resmi */
.coa-gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.coa-thumbnail-wrapper:hover .coa-gallery-image {
    transform: scale(1.1);
}

/* Overlay Menü */
.coa-overlay-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.coa-thumbnail-wrapper:hover .coa-overlay-menu {
    opacity: 1;
    visibility: visible;
}

/* Menü Butonları */
.coa-overlay-menu button,
.coa-overlay-menu a {
    background: transparent;
    color: #fff;
    padding: 12px 30px;
    border: 2px solid #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.coa-overlay-menu button:hover,
.coa-overlay-menu a:hover {
    background: #fff;
    color: #333;
    transform: scale(1.05);
}

/* Lightbox Modal */
.coa-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    cursor: zoom-out;
}

.coa-lightbox-modal.active {
    display: flex;
}

/* Lightbox İçerik */
.coa-lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.coa-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(255,255,255,0.1);
    cursor: default;
}

/* Lightbox Kapatma Butonu */
.coa-lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
}

.coa-lightbox-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Lightbox Başlık */
.coa-lightbox-title {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 16px;
    padding: 10px 20px;
    background: rgba(0,0,0,0.7);
    border-radius: 5px;
    max-width: 80%;
    text-align: center;
}

/* Sayfalandırma */
.coa-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    gap: 8px;
}

.coa-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    min-width: 40px;
    text-align: center;
    border: 2px solid #e0e0e0;
    text-decoration: none;
    color: #333;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.coa-pagination .page-numbers:hover {
    background: #f0f0f0;
    border-color: #999;
}

.coa-pagination .page-numbers.current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.coa-pagination .prev,
.coa-pagination .next {
    padding: 10px 20px;
}

/* Hata Mesajı */
.coa-error,
.coa-no-images {
    padding: 20px;
    background: #f8f8f8;
    border-left: 4px solid #ff6b6b;
    color: #666;
    margin: 20px 0;
    border-radius: 4px;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .coa-gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .coa-overlay-menu button,
    .coa-overlay-menu a {
        padding: 10px 20px;
        font-size: 12px;
        min-width: 100px;
    }
    
    .coa-lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 35px;
    }
    
    .coa-pagination .page-numbers {
        padding: 8px 12px;
        min-width: 35px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .coa-gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
}