/* Gelişmiş Lightbox Modal CSS */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.92);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.lightbox-main {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#custom-lightbox-image {
    max-width: 80vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}

/* Ocak detay sayfası için özel boyut - data-gallery-id ile kontrol */
/* Geniş galeri lightboxları için özel boyutlandırma (ocak, fabrika vb.) */
.lightbox-modal[data-gallery-type="large-gallery"] #custom-lightbox-image {
    max-width: 900px !important;
    max-height: 700px !important;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

/* Geniş galeri için responsive boyutlar */
@media (max-width: 1200px) {
    .lightbox-modal[data-gallery-type="large-gallery"] #custom-lightbox-image {
        max-width: 90vw !important;
        max-height: 80vh !important;
    }
}

@media (max-width: 768px) {
    .lightbox-modal[data-gallery-type="large-gallery"] #custom-lightbox-image {
        max-width: 95vw !important;
        max-height: 75vh !important;
    }
}
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    border: 2px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: white;
    color: black;
    transform: scale(1.1);
}

.lightbox-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - 40px);
    left: 20px;
    display: flex;
    justify-content: space-between;
}

.nav-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 20px;
    color: white;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.lightbox-info {
    text-align: center;
    color: white;
    margin-top: 20px;
}

#custom-lightbox-caption {
    font-size: 1.2rem;
    font-weight: 500;
}

.lightbox-counter {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 5px;
}

/* Ocak Detail Stilleri */
.ocak-detail-info {
    margin-bottom: 50px;
}

.detail-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 400px;
}

.detail-image {
    position: relative;
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.detail-card:hover .detail-image img {
    transform: scale(1.05);
}

.detail-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-content h2 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    margin-bottom: 20px !important;
    line-height: 1.3 !important;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.meta-item i {
    color: #007bff;
    font-size: 16px;
}

.detail-description {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
}

.detail-description p {
    margin: 0;
}

/* Related Ocaklar */
.related-ocaklar {
    margin-top: 60px;
}

.related-ocaklar h3 {
    font-size: 2rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 30px !important;
    text-align: center;
}

/* View Button */
.view-btn {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    color: #007bff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.view-btn:hover {
    background: white;
    transform: scale(1.1);
    color: #007bff;
    text-decoration: none;
}

/* Gallery Title Links */
.gallery-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.gallery-title a:hover {
    color: #007bff;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .detail-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .detail-image {
        height: 250px;
    }
    
    .detail-content {
        padding: 25px;
    }
    
    .detail-content h2 {
        font-size: 1.5rem !important;
    }
    
    .meta-item {
        font-size: 13px;
    }
    
    .detail-description {
        font-size: 14px;
    }
    
    .related-ocaklar h3 {
        font-size: 1.5rem !important;
    }
}

/* Ocak Galeri Bölümü */
.ocak-gallery-section {
    margin-top: 60px;
    margin-bottom: 60px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-header h3 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    margin-bottom: 15px !important;
    line-height: 1.2 !important;
}

.gallery-header p {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
    font-weight: 400;
}

/* Ana Galeri Grid - Modern Masonry Layout */
.main-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 15px;
    margin-top: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.gallery-item-large {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    cursor: pointer;
}

/* Modern Grid Layout Patterns */
.gallery-item-large:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item-large:nth-child(2) {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item-large:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item-large:nth-child(4) {
    grid-column: span 2;
    grid-row: span 1;
}

.gallery-item-large:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item-large:nth-child(6) {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item-large:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    z-index: 10;
}

.gallery-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item-large:hover .gallery-image-container img {
    transform: scale(1.05);
}

.gallery-overlay-large {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.3) 50%,
        rgba(0,0,0,0.8) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item-large:hover .gallery-overlay-large {
    opacity: 1;
}

.overlay-content-large {
    text-align: center;
    color: white;
    padding: 20px;
}

.zoom-btn-large {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    color: #007bff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-btn-large:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,123,255,0.3);
}

.overlay-content-large h4 {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: white !important;
    margin: 0 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.3 !important;
}

/* Responsive Ana Galeri - Modern Breakpoints */
@media (max-width: 1200px) {
    .main-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 180px;
        gap: 12px;
        padding: 0 15px;
    }
    
    .gallery-item-large:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .gallery-item-large:nth-child(4) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 900px) {
    .main-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
        gap: 12px;
        padding: 0 15px;
    }
    
    .gallery-item-large:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .gallery-item-large:nth-child(2),
    .gallery-item-large:nth-child(3),
    .gallery-item-large:nth-child(4),
    .gallery-item-large:nth-child(5),
    .gallery-item-large:nth-child(6) {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .gallery-header h3 {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 768px) {
    .main-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
        gap: 10px;
        margin: 30px 10px 0;
        padding: 0;
    }
    
    .gallery-item-large:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .gallery-item-large:nth-child(2),
    .gallery-item-large:nth-child(3),
    .gallery-item-large:nth-child(4),
    .gallery-item-large:nth-child(5),
    .gallery-item-large:nth-child(6) {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .gallery-header h3 {
        font-size: 2rem !important;
    }
    
    .gallery-header p {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .zoom-btn-large {
        width: 55px;
        height: 55px;
        font-size: 18px;
    }
    
    .overlay-content-large h4 {
        font-size: 0.9rem !important;
    }
    
    .gallery-item-large:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

@media (max-width: 576px) {
    .main-gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
        gap: 12px;
        margin: 25px 8px 0;
    }
    
    .gallery-item-large:nth-child(1),
    .gallery-item-large:nth-child(2),
    .gallery-item-large:nth-child(3),
    .gallery-item-large:nth-child(4),
    .gallery-item-large:nth-child(5),
    .gallery-item-large:nth-child(6) {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .gallery-header h3 {
        font-size: 1.7rem !important;
        margin-bottom: 10px !important;
    }
    
    .gallery-header p {
        font-size: 0.95rem;
        padding: 0 8px;
    }
    
    .overlay-content-large {
        padding: 12px;
    }
    
    .zoom-btn-large {
        width: 50px;
        height: 50px;
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .overlay-content-large h4 {
        font-size: 0.85rem !important;
        line-height: 1.2 !important;
    }
    
    .gallery-item-large {
        border-radius: 15px;
    }
    
    .gallery-item-large:hover {
        transform: translateY(-3px) scale(1.005);
    }
}

@media (max-width: 480px) {
    .main-gallery-grid {
        margin: 20px 5px 0;
        gap: 10px;
        grid-auto-rows: 180px;
    }
    
    .gallery-header h3 {
        font-size: 1.5rem !important;
    }
    
    .gallery-header p {
        font-size: 0.9rem;
    }
    
    .zoom-btn-large {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }
    
    .overlay-content-large h4 {
        font-size: 0.8rem !important;
    }
}

/* Ocak Galeri Stilleri */
.ocak-gallery {
    margin-top: 30px;
}

/* Galeri Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.gallery-item {
    transition: all 0.3s ease;
}

.gallery-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.gallery-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
}

.zoom-btn {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    color: #007bff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.zoom-btn:hover {
    background: white;
    transform: scale(1.1);
}

.gallery-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gallery-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
}

.gallery-location {
    color: #007bff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gallery-location i {
    font-size: 12px;
}

.gallery-description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
}

.lightbox-container {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    color: #007bff;
    transform: scale(1.1);
}

/* Ana Görsel Alanı */
.lightbox-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-right: 20px;
}

.lightbox-image-container {
    position: relative;
    max-width: 100%;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#ocak-lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    transition: all 0.3s ease;
}

.lightbox-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.nav-btn {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.nav-btn:hover {
    background: white;
    transform: scale(1.1);
    color: #007bff;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lightbox-info {
    margin-top: 20px;
    text-align: center;
    color: white;
}

#ocak-lightbox-caption {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.lightbox-counter {
    font-size: 1rem;
    color: #ccc;
    font-weight: 500;
}

/* Thumbnail Sidebar */
.lightbox-sidebar {
    width: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
}

.sidebar-header h4 {
    color: white;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.thumbnail-grid {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-height: calc(80vh - 80px);
}

.thumbnail-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail-item:hover {
    transform: scale(1.05);
    border-color: #007bff;
}

.thumbnail-item.active {
    border-color: #007bff;
    box-shadow: 0 0 20px rgba(0,123,255,0.5);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.thumbnail-item:hover img {
    transform: scale(1.1);
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.thumbnail-item:hover .thumbnail-overlay {
    opacity: 1;
}

.thumbnail-overlay i {
    color: white;
    font-size: 20px;
}

/* Scrollbar Styling */
.thumbnail-grid::-webkit-scrollbar {
    width: 6px;
}

.thumbnail-grid::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.thumbnail-grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.thumbnail-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* Responsive Tasarım */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        margin: 20px 15px 0 15px;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .gallery-content {
        padding: 15px;
    }
    
    .gallery-title {
        font-size: 1rem !important;
    }
    
    .zoom-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    /* Mobil Lightbox */
    .lightbox-container {
        flex-direction: column;
        padding: 10px;
        gap: 15px;
    }
    
    .lightbox-main {
        padding-right: 0;
        order: 1;
        flex: 1;
    }
    
    .lightbox-sidebar {
        width: 100%;
        max-height: 180px;
        order: 2;
        flex-shrink: 0;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        max-height: 140px;
        padding: 12px;
        overflow-y: auto;
    }
    
    .thumbnail-item {
        aspect-ratio: 1;
        min-height: 70px;
        max-height: 70px;
        width: 100%;
    }
    
    .thumbnail-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .sidebar-header {
        padding: 12px 15px;
    }
    
    .sidebar-header h4 {
        font-size: 0.9rem;
    }
    
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
    
    #ocak-lightbox-image {
        max-height: 60vh;
    }
    
    #ocak-lightbox-caption {
        font-size: 1rem;
    }
    
    .lightbox-counter {
        font-size: 0.9rem;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 20px 10px 0 10px;
    }
    
    .gallery-image {
        height: 180px;
    }
    
    .gallery-content {
        padding: 12px;
    }
    
    .gallery-title {
        font-size: 0.95rem !important;
    }
    
    .gallery-description {
        font-size: 13px;
    }
}
