/* Oxygen shortcode wrapper replaced the full-width code block. */
#shortcode-4-15185 { width: 100%; }
.ct-shortcode:has(.album-single-wrapper) { width: 100%; }

.album-single-wrapper {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Rounded Hero Header Card */
.album-hero-card {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Title & Description */
.hero-top-text {
    max-width: 800px;
}

.hero-main-title {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.hero-sub-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

/* Bottom Right Buttons */
.hero-actions {
    align-self: flex-end;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    background-color: rgba(26, 32, 44, 0.85);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
}

.pill-btn:hover {
    background-color: #0f172a;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Gallery Limit Control Toolbar */
.pet-gallery-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 24px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.pet-gallery-toolbar-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #64748b;
    margin-right: 4px;
}

.pet-limit-btn {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pet-limit-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.pet-limit-btn.is-active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.pet-slideshow-start {
    margin-left: auto;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #b91c1c;
    background: #d91f26;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter .2s ease, transform .2s ease;
}
.pet-slideshow-start:hover { filter: brightness(1.08); transform: translateY(-1px); }
.pet-slideshow-start:disabled { opacity: .45; cursor: not-allowed; }

/* 3-Column Masonry Photo Grid - matches the car album gallery */
.album-gallery-grid {
    columns: 3;
    column-gap: 20px;
    display: block;
    margin-top: 12px;
}

.gallery-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 20px;
    break-inside: avoid;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,0.28);
    background-color: #1a202c;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card-hidden {
    display: none !important;
}

.pet-lightbox-trigger {
    display: block;
    border: 0;
    padding: 0;
    border-radius: inherit;
    text-decoration: none;
}

.gallery-card img {
    width: 100%;
    height: auto;
    display: block;
    border: 0;
    border-radius: inherit;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.gphotos-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.no-photos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #64748b;
    background: #f8fafc;
    border-radius: 12px;
}

.gallery-load-more-wrapper {
    text-align: center;
    margin: 30px 0 20px;
}

.gallery-load-more-btn {
    background: #2b6cb0;
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: background-color 0.2s ease;
}

.gallery-load-more-btn:hover {
    background: #2c5282;
}

.gallery-item-count-badge {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #64748b;
}

/* Custom Built-In Universal Lightbox Styles */
#custom-lightbox-modal {
    position: fixed; inset: 0; z-index: 9999999; display: flex; align-items: center; justify-content: center;
    background: rgba(10, 15, 26, 0.94); backdrop-filter: blur(8px); opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#custom-lightbox-modal.is-open { opacity: 1; visibility: visible; }
.lb-content-stage { position: relative; width: 92%; height: 88%; overflow: hidden; }
.lb-media-element { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 50px rgba(0,0,0,0.8); user-select: none; opacity: 1; transition: opacity 2s ease; }
.lb-media-element.lb-media-fade { opacity: 0; }
.lb-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; width: 54px; height: 54px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10;
    transition: background 0.2s ease, transform 0.2s ease;
}
.lb-nav-btn:hover { background: rgba(255, 255, 255, 0.3); transform: translateY(-50%) scale(1.08); }
.lb-prev-btn { left: 20px; }
.lb-next-btn { right: 20px; }

.lb-top-controls {
    position: absolute; top: 20px; right: 25px; display: flex; align-items: center; gap: 14px; z-index: 10;
}
.lb-control-icon-btn {
    background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25); color: #fff;
    padding: 8px 16px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; gap: 6px; transition: all 0.2s ease;
}
.lb-control-icon-btn:hover { background: rgba(255, 255, 255, 0.3); }

.lb-control-icon-btn.is-playing {
    background: #16a34a !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

.lb-bottom-bar {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.65); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff;
    padding: 6px 18px; border-radius: 20px; font-size: 0.88rem; font-weight: 600; z-index: 10;
}

@media (max-width: 900px) {
    .album-gallery-grid {
        column-count: 2;
    }
    .hero-main-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 600px) {
    .album-gallery-grid {
        column-count: 1;
    }
    .album-hero-card {
        height: 360px;
        padding: 24px;
    }
    .pet-gallery-toolbar {
        justify-content: center;
    }
    .pet-slideshow-start { margin-left: 0; width: 100%; }
}
