/*
Theme Name: Visual How-To
Theme URI: https://example.com/visual-howto
Author: Visual How-To
Author URI: https://example.com
Description: A clean, Pinterest-inspired how-to guide theme with step-by-step visual cards, image sliders, and Google AdSense sidebar support. Built with Tailwind CSS.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: visual-howto
Tags: blog, grid-layout, custom-menu, featured-images, translation-ready
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/* ========================================
   CSS CUSTOM PROPERTIES
   ======================================== */
:root {
    --color-shadow: #272727;
    --color-mustard: #fed766;
    --color-pacific: #009fb7;
    --color-pacific-dark: #007a8c;
    --color-dim: #696773;
    --color-platinum: #eff1f3;
    --color-white: #ffffff;
}

/* ========================================
   BASE / RESET
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-platinum);
    color: var(--color-shadow);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .container { padding: 0 2rem; }
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
    background: var(--color-white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.site-branding h1,
.site-branding .site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-pacific);
    margin: 0;
    line-height: 1.2;
}

.site-branding h1 a,
.site-branding .site-title a {
    color: var(--color-pacific);
}

.site-branding .site-tagline {
    font-size: 0.75rem;
    color: var(--color-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

/* Primary Navigation */
.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.primary-nav a {
    color: var(--color-dim);
    font-weight: 500;
    padding-bottom: 0.25rem;
    transition: color 0.2s ease, border-color 0.2s ease;
    border-bottom: 2px solid transparent;
}

.primary-nav a:hover,
.primary-nav .current-menu-item a,
.primary-nav .current_page_item a {
    color: var(--color-pacific);
    border-bottom-color: var(--color-pacific);
    font-weight: 600;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-dim);
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 767px) {
    .menu-toggle {
        display: block;
    }
    .primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 1rem;
    }
    .primary-nav.is-open {
        display: block;
    }
    .primary-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .primary-nav li {
        border-bottom: 1px solid var(--color-platinum);
    }
    .primary-nav a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: none;
    }
}

/* ========================================
   ARCHIVE / CARD GRID
   ======================================== */
.archive-header {
    margin-bottom: 2.5rem;
}

.archive-header h2,
.archive-header .page-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-shadow);
    margin: 0 0 1rem;
}

.archive-header p,
.archive-header .archive-description {
    font-size: 1.125rem;
    color: var(--color-dim);
    max-width: 42rem;
    margin: 0;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .card-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
    .card-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Individual Card */
.card {
    background: var(--color-white);
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 480px;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    flex-shrink: 0;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image-wrapper img {
    transform: scale(1.03);
}

.card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-pacific);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-shadow);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.card-title a {
    color: var(--color-shadow);
}

.card-title a:hover {
    color: var(--color-pacific);
}

.card-excerpt {
    font-size: 0.875rem;
    color: var(--color-dim);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-cta {
    margin-top: auto;
}

.card-cta a,
.card-cta span {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--color-platinum);
    color: var(--color-shadow);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.card-cta a:hover,
.card-cta span:hover {
    background: var(--color-pacific);
    color: var(--color-white);
}

/* ========================================
   SINGLE POST LAYOUT
   ======================================== */
.single-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .single-layout {
        flex-direction: row;
    }
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-pacific);
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--color-pacific-dark);
}

.back-link svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

/* Main Content */
.single-main {
    flex: 1;
    min-width: 0;
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e2e6ea;
}

@media (min-width: 768px) {
    .single-main {
        padding: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .single-main {
        flex: 0 0 66.666%;
    }
}

.entry-category {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-pacific);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.entry-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--color-shadow);
    margin: 0.5rem 0 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .entry-title {
        font-size: 3rem;
    }
}

.entry-meta {
    font-size: 0.875rem;
    color: var(--color-dim);
    margin-bottom: 2rem;
}

.entry-meta .sep {
    margin: 0 0.5rem;
}

.entry-intro {
    font-size: 1.125rem;
    color: var(--color-dim);
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

/* Image Slider */
.step-slider {
    margin-bottom: 3rem;
}

.step-slider h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-shadow);
    margin-bottom: 1rem;
}

.slider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
}

.slide img {
    width: 100%;
    height: 24rem;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 3rem 1.5rem 1.5rem;
    color: #fff;
}

.slide-caption p {
    font-weight: 700;
    font-size: 1.125rem;
    margin: 0;
}

.slider-hint {
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-dim);
    margin-top: 0.5rem;
}

/* Entry Content (Prose) */
.entry-content {
    margin-bottom: 3rem;
}

.entry-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-shadow);
    margin-bottom: 1rem;
}

.entry-content p {
    color: var(--color-dim);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.entry-content ol,
.entry-content ul {
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.entry-content li {
    color: var(--color-dim);
    margin-bottom: 1rem;
    line-height: 1.75;
}

.entry-content li strong {
    color: var(--color-shadow);
}

.entry-content img {
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.entry-content a {
    color: var(--color-pacific);
}

.entry-content a:hover {
    color: var(--color-pacific-dark);
    text-decoration: underline;
}

/* Video Embed */
.video-container {
    margin-bottom: 2rem;
}

.video-container h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-shadow);
    margin-bottom: 1rem;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* WordPress Embed Blocks (YouTube, Vimeo, etc.) — Force Full Width */
.entry-content .wp-block-embed {
    max-width: 100% !important;
    margin-left: 0;
    margin-right: 0;
}

.entry-content .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    max-width: 100% !important;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

.entry-content .wp-block-embed__wrapper iframe,
.entry-content .wp-block-embed__wrapper object,
.entry-content .wp-block-embed__wrapper embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    border-radius: 0.75rem;
}

/* Also handle oEmbed figure wrappers */
.entry-content figure.wp-block-embed {
    margin: 1.5rem 0;
    max-width: 100% !important;
}

.entry-content figure.wp-block-embed figcaption {
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-dim);
    margin-top: 0.5rem;
}

/* ========================================
   SIDEBAR
   ======================================== */
.site-sidebar {
    width: 100%;
}

@media (min-width: 1024px) {
    .site-sidebar {
        flex: 0 0 33.333%;
    }
}

.site-sidebar > * + * {
    margin-top: 2rem;
}

/* Sidebar Widgets */
.widget {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e2e6ea;
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-shadow);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-platinum);
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-platinum);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--color-dim);
    transition: color 0.2s ease;
}

.widget a:hover {
    color: var(--color-pacific);
}

/* AdSense Containers */
.adsense-slot {
    background: var(--color-platinum);
    border: 2px dashed #d1d7dc;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    color: var(--color-dim);
}

.adsense-slot--medium {
    min-height: 300px;
}

.adsense-slot--half-page {
    min-height: 600px;
    position: sticky;
    top: 6rem;
}

.adsense-slot .label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.adsense-slot .size-info {
    display: block;
    font-size: 0.75rem;
}

/* Author Box */
.author-box {
    text-align: center;
}

.author-avatar {
    width: 5rem;
    height: 5rem;
    background: var(--color-mustard);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-pacific);
    font-weight: 700;
    font-size: 1.5rem;
}

.author-box h4 {
    font-weight: 700;
    color: var(--color-shadow);
    margin: 0 0 0.5rem;
}

.author-box p {
    font-size: 0.875rem;
    color: var(--color-dim);
    margin: 0;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--color-white);
    border-top: 1px solid #e2e6ea;
    margin-top: 3rem;
    padding: 2rem 0;
}

.site-footer .container {
    text-align: center;
}

.site-footer p {
    font-size: 0.875rem;
    color: var(--color-dim);
    margin: 0;
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.pagination a {
    background: var(--color-white);
    color: var(--color-dim);
    border: 1px solid #e2e6ea;
}

.pagination a:hover {
    background: var(--color-pacific);
    color: var(--color-white);
    border-color: var(--color-pacific);
}

.pagination .current {
    background: var(--color-pacific);
    color: var(--color-white);
    border: 1px solid var(--color-pacific);
}

/* ========================================
   COMMENTS
   ======================================== */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e6ea;
}

.comments-area h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.comment-body {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-platinum);
}

.comment-author {
    font-weight: 700;
    color: var(--color-shadow);
}

.comment-meta {
    font-size: 0.75rem;
    color: var(--color-dim);
    margin-bottom: 0.5rem;
}

.comment-content p {
    color: var(--color-dim);
}

/* Comment Form */
.comment-respond label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--color-shadow);
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d7dc;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    font-family: inherit;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.comment-respond input:focus,
.comment-respond textarea:focus {
    outline: none;
    border-color: var(--color-pacific);
    box-shadow: 0 0 0 3px rgba(0, 159, 183, 0.15);
}

.comment-respond .submit {
    background: var(--color-pacific);
    color: var(--color-white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.comment-respond .submit:hover {
    background: var(--color-pacific-dark);
}

/* ========================================
   SEARCH FORM (Sidebar Widget)
   ======================================== */
.search-form {
    display: flex;
}

.search-form .search-field {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d7dc;
    border-right: none;
    border-radius: 0.375rem 0 0 0.375rem;
    font-size: 0.875rem;
}

.search-form .search-submit {
    background: var(--color-pacific);
    color: var(--color-white);
    border: 1px solid var(--color-pacific);
    padding: 0.5rem 1rem;
    border-radius: 0 0.375rem 0.375rem 0;
    cursor: pointer;
    font-weight: 600;
}

/* ========================================
   404 PAGE
   ======================================== */
.error-404 {
    text-align: center;
    padding: 4rem 1rem;
}

.error-404 h1 {
    font-size: 6rem;
    font-weight: 800;
    color: var(--color-pacific);
    margin: 0;
}

.error-404 p {
    font-size: 1.25rem;
    color: var(--color-dim);
    margin: 1rem 0 2rem;
}

/* ========================================
   SCREEN READER TEXT (Accessibility)
   ======================================== */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ========================================
   IN-CONTENT ADS
   Injected between intro/slider/instructions.
   ======================================== */
.incontent-ad {
    margin: 2rem 0;
    padding: 1rem;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Subtle separator lines above/below so ads don't blend into content */
.incontent-ad--after-intro,
.incontent-ad--after-slider {
    border-top: 1px solid #e2e6ea;
    border-bottom: 1px solid #e2e6ea;
    padding: 1.5rem 1rem;
    background: var(--color-platinum);
}

.incontent-ad--before-comments {
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-top: 1px solid #e2e6ea;
    padding-top: 1.5rem;
}

.incontent-ad-wrap {
    margin-top: 2rem;
}

/* Responsive: let ads stack naturally on mobile */
@media (max-width: 480px) {
    .incontent-ad {
        margin: 1.5rem -0.5rem;
        border-radius: 0;
    }
}

/* ========================================
   GALLERY SLIDER (.vht-slider)
   Auto-converted from WordPress Gallery blocks.
   ======================================== */
.vht-slider {
    position: relative;
    margin: 1.5rem 0 2.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Viewport clips the track */
.vht-slider__viewport {
    overflow: hidden;
    border-radius: 0.75rem 0.75rem 0 0;
}

/* Track holds slides in a horizontal row */
.vht-slider__track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: grab;
    will-change: transform;
}

.vht-slider__track:active {
    cursor: grabbing;
}

/* Each slide is exactly 100% width */
.vht-slider__slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 100%;
}

.vht-slider__slide img {
    width: 100%;
    height: 14rem;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

@media (min-width: 480px) {
    .vht-slider__slide img {
        height: 18rem;
    }
}

@media (min-width: 640px) {
    .vht-slider__slide img {
        height: 22rem;
    }
}

@media (min-width: 768px) {
    .vht-slider__slide img {
        height: 28rem;
    }
}

/* Caption overlay */
.vht-slider__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82), rgba(0,0,0,0.3) 60%, transparent);
    padding: 4rem 1.5rem 1.5rem;
    pointer-events: none;
}

.vht-slider__caption p {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
    .vht-slider__caption {
        padding: 5rem 2rem 1.75rem;
    }
    .vht-slider__caption p {
        font-size: 1.15rem;
    }
}

/* ── Arrow Buttons ── */
.vht-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.92);
    color: var(--color-shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.vht-slider__arrow:hover {
    background: var(--color-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transform: translateY(-50%) scale(1.08);
}

.vht-slider__arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.vht-slider__arrow--prev {
    left: 0.75rem;
}

.vht-slider__arrow--next {
    right: 0.75rem;
}

.vht-slider__arrow.is-faded {
    opacity: 0.35;
}

.vht-slider__arrow.is-faded:hover {
    opacity: 0.7;
}

/* Mobile: smaller arrows */
@media (max-width: 480px) {
    .vht-slider__arrow {
        width: 2rem;
        height: 2rem;
    }
    .vht-slider__arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* ── Counter Badge ── */
.vht-slider__counter {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
}

/* ── Dot Indicators ── */
.vht-slider__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: #1a1a1a;
}

.vht-slider__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}

.vht-slider__dot:hover {
    background: rgba(255,255,255,0.55);
}

.vht-slider__dot.is-active {
    background: var(--color-pacific);
    width: 1.5rem;
    border-radius: 999px;
}

/* ── Swipe Hint ── */
.vht-slider__hint {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    background: #1a1a1a;
    padding: 0 1rem 0.75rem;
    margin: 0;
    border-radius: 0 0 0.75rem 0.75rem;
}

/* ── Hide default WP gallery when converted ── */
.wp-block-gallery.has-nested-images {
    /* Fallback — should never show since we replace the whole block */
}

/* ── Custom Logo ── */
.site-logo {
    line-height: 0;
    flex-shrink: 0;
}

.site-logo a {
    display: inline-block;
    line-height: 0;
}

.site-logo .custom-logo,
.site-logo img {
    height: 60px !important;
    width: auto !important;
    max-width: none !important;
    display: block;
}
