/* Site-specific styles (previously inline <style> blocks in index pages). */

.artwork-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.5s ease;
}
/* Replaces the old anime.js hover animation (anime was never loaded). */
.artwork-card:hover {
    transform: scale(1.02);
}
.artwork-card:hover .artwork-overlay {
    opacity: 1;
    transform: translateY(0);
}
.artwork-overlay {
    transition: all 0.3s ease;
    transform: translateY(20px);
}
/* Touch screens have no hover: keep the caption + "details" link visible so the
   painting's page is reachable (tapping the picture itself enlarges it). */
@media (hover: none) {
    .artwork-card .artwork-overlay {
        opacity: 1;
        transform: none;
        top: auto;
        padding: 2.5rem 1rem 0.75rem;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    }
    .artwork-card .artwork-overlay span {
        align-self: flex-start;
        padding: 0.5rem 0.75rem;
        margin: 0.25rem 0 0 -0.75rem;
        font-size: 0.875rem;
    }
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Behance embed: hide scrollbars and ensure iframe doesn't show overflow */
.embed-container {
    overflow: hidden;
    height: 316px; /* match iframe height */
    max-width: 600px;
    margin: 0 auto;
}
.embed-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    overflow: hidden;
}
/* Hide scrollbars where the browser allows it */
.embed-container iframe::-webkit-scrollbar { display: none; }
.embed-container iframe { -ms-overflow-style: none; scrollbar-width: none; }

@media (prefers-reduced-motion: reduce) {
    .artwork-card,
    .artwork-overlay { transition: none; }
    .artwork-card:hover { transform: none; }
}
