* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #222;
    background-color: #fff;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.site-header {
    border-bottom: 1px solid #eaeaea;
    padding: 20px 0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    text-decoration: none;
    display: inline-block;
}

.logo img {
    max-height: 63px;
    height: auto;
    width: auto;
    max-width: 100%;
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #000;
}

.hero {
    padding: 60px 0;
    text-align: center;
    background: #fafafa;
    border-bottom: 1px solid #eaeaea;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.hero p {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 25px auto;
}

.hero-bg-container {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fafafa;
    color: #fff;
    border-bottom: 1px solid #eaeaea;
}

.hero-bg-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-content-box {
    position: relative;
    z-index: 2;
    padding: 120px 0; 
	text-align: center;
}

.hero-content-box h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-content-box p {
    font-size: 1.15rem;
    color: #ddd;
    max-width: 650px;
    margin: 0 auto 30px auto; 
}

.hero-with-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 80px 0;
    border-bottom: none;
}

.hero-with-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-with-bg .container {
    position: relative;
    z-index: 2;
}

.hero-with-bg p {
    color: #ddd;
}

.btn {
    display: inline-block;
    background: #111;
    color: #fff;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.btn:hover {
    background: #333;
}

.featured-gallery {
    padding: 60px 0;
}

.featured-gallery h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 500;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
}

.gallery-item {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 3 / 2;
    background: #eee;
}

.img-title {
    padding: 10px 0;
    font-size: 0.9rem;
    color: #666;
}

.no-images {
    grid-column: 1 / -1;
    text-align: center;
    color: #777;
    padding: 40px;
}

.video-fullwidth {
    width: 100%;
    margin-bottom: 30px;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 4px;
}

.gallery-grid-wrapper {
    position: relative;
    max-height: 450px;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.gallery-grid-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gallery-grid-wrapper.expanded {
    max-height: none;
}

.gallery-grid-wrapper.expanded::after {
    opacity: 0;
}

.glightbox-container .gslide-description.description-top,
.glightbox-container .gslide-description {
    background: #000000 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 5px 5px !important;
    text-align: center !important;
}

.glightbox-container .gslide-title,
.glightbox-container .gslide-desc {
    color: #ffffff !important;
    background: transparent !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin: 0 auto !important;
    display: block !important;
}

.toggle-gallery-btn {
    display: inline-block;
    margin-top: 15px;
    background: none;
    border: 1px solid #333;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.toggle-gallery-btn:hover {
    background: #f0f0f0;
}

.site-footer {
    border-top: 1px solid #eaeaea;
    padding: 30px 0;
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    background: #fafafa;
}

/* --- Admin / upload.php stilar --- */
.drag-list { 
    list-style: none; 
    padding: 0; 
    margin: 10px 0; 
}

.drag-item { 
    padding: 10px; 
    background: #fff; 
    border: 1px solid #ccc; 
    margin-bottom: 5px; 
    cursor: grab; 
    border-radius: 4px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.drag-item:active { 
    cursor: grabbing; 
}

.drag-item.dragging { 
    opacity: 0.4; 
}

.drag-item.super-item { 
    background: #e8f5e9; 
    border-color: #a5d6a7; 
    font-weight: bold; 
}

.admin-box { 
    background: #fafafa; 
    border: 1px solid #ddd; 
    border-radius: 6px; 
    padding: 25px; 
    margin-bottom: 30px; 
}

#upload_progress { 
    font-weight: bold; 
    color: #0073aa; 
    margin-top: 10px; 
}

details.page-accordion {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

details.page-accordion > summary {
    background: #0073aa;
    color: #fff;
    padding: 12px 18px;
    font-weight: bold;
    font-size: 1.05rem;
    cursor: pointer;
    user-select: none;
}

details.page-accordion > summary:hover {
    background: #005177;
}

.page-accordion-content {
    padding: 15px;
    background: #fcfcfc;
}

details.sub-accordion {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

details.sub-accordion > summary {
    background: #eef2f5;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
    user-select: none;
}

details.sub-accordion > summary:hover {
    background: #e2e8ed;
}

.sub-accordion-content {
    padding: 10px 15px;
    max-height: 400px;
    overflow-y: auto;
}

details.upload-accordion {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

details.upload-accordion > summary {
    background: #2c3e50;
    color: #fff;
    padding: 14px 18px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    user-select: none;
}

details.upload-accordion > summary:hover {
    background: #1a252f;
}

.upload-accordion-content {
    padding: 20px;
    background: #fafafa;
}


.gallery-item {
    position: relative !important;
}

.preview-buy-btn {
    position: absolute !important;
    bottom: 10px !important;
    right: 10px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #000000 !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    z-index: 10 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) !important;
    transition: transform 0.2s ease, background 0.2s ease !important;
}

.preview-buy-btn svg {
    stroke: #000000 !important;
    display: block !important;
}

.preview-buy-btn:hover {
    background: #ffffff !important;
    transform: scale(1.08) !important;
}

.preview-buy-btn .buy-tooltip {
    display: none !important;
    position: absolute !important;
    right: 42px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(0, 0, 0, 0.88) !important;
    color: #ffffff !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

.preview-buy-btn:hover .buy-tooltip {
    display: block !important;
}

.glightbox-container .gslide-desc {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    margin: 0 !important;
    z-index: 9999999 !important;
    pointer-events: auto !important;
}

.glightbox-buy-btn {
    background: #111111 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    padding: 12px 18px !important;
    border-radius: 4px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6) !important;
    transition: background 0.2s ease !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    cursor: pointer !important;
}

.glightbox-buy-btn svg {
    stroke: #ffffff !important;
}

.glightbox-buy-btn:hover {
    background: #333333 !important;
    color: #ffffff !important;
}


/* --- Cookie-banner --- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 900px;
    margin: 0 auto;
    background: #1a1a1a;
    color: #f5f5f5;
    padding: 18px 24px;
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 99999;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-banner p {
    margin: 0;
    color: #e0e0e0;
}

.cookie-banner a {
    color: #ffffff;
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn-accept {
    background: #ffffff;
    color: #111111;
    border: none;
    padding: 9px 18px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.cookie-btn-accept:hover {
    background: #e2e2e2;
}

@media (max-width: 650px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        bottom: 12px;
        left: 12px;
        right: 12px;
        padding: 16px;
    }
    .cookie-banner-buttons {
        width: 100%;
    }
    .cookie-btn-accept {
        width: 100%;
        text-align: center;
    }
}