/*
 Theme Name:   Twenty Twenty-Four Child
 Template:     twentytwentyfour
 Version:      1.0.0
*/

/* === Portfolio grid hover effect only === */
.portfolio-grid .wp-block-post {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.portfolio-grid .wp-block-post:hover {
    transform: translateY(-0px);
}

.portfolio-grid .wp-block-post-featured-image img {
    transform: scale(1.25);          /* 15% larger – change to 1.2 or 1.3 for more zoom */
    transition: none;                /* no animation */
}

.portfolio-grid .wp-block-post {
    overflow: hidden;
}

.portfolio-grid .wp-block-post::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.548) 0%, transparent 90%);
    transition: height 0.2s ease;
    pointer-events: none;
}

.portfolio-grid .wp-block-post:hover::after {
    height: 60%;
}

/* Title hidden by default, shows on hover – only inside grid */
.portfolio-grid .wp-block-post-title {
    position: absolute !important;
    bottom: 1rem;
    left: 1rem;
    margin: 0;
    color: white;
    font-size: 1.1rem;
    font-weight: 600 !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.portfolio-grid .wp-block-post:hover .wp-block-post-title {
    opacity: 1 !important;
}

/* Image styling */
.portfolio-grid .wp-block-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* === Normal post titles (single pages) – keep visible by default === */
.wp-block-post-title {
    display: block !important;
    position: static !important;
    opacity: 1 !important;
    color: inherit !important;
}

/* === Other rules (comments, gallery captions) === */
.comment-respond, .comments-area, .comment-reply-link, .entry-comments-link,
.meta-comments, #comments, .wp-block-comments, .wp-block-comments-title {
    display: none !important;
}

.gallery-edit figcaption, .gallery-edit .wp-block-image figcaption,
.gallery-edit .wp-caption-text, .gallery-edit .gallery-caption {
    display: none !important;
}


/* Remove Simple Lightbox caption / counter / preset text */
#slb_viewer_wrap .slb_theme_slb_default .slb_data_title, #slb_viewer_wrap .slb_theme_slb_default .slb_group_status {
    display: none !important;
}

#slb_viewer_wrap .slb_theme_slb_baseline .slb_viewer_overlay {
    background-color: #0000003d !important;
}