/* Homepage gallery card, replacing only registration section #2.
   Inherits HMHCG approved palette: wine #8D1D0A / cream #FFF4D9 / gold #C58A32. */
.home-wrap .block-home-gallery-preview {
    background: #FFF4D9;
    border-color: rgba(197, 138, 50, .45);
}
.home-wrap .block-home-gallery-preview .hmhcg-home-gallery-content {
    padding: 10px;
}
.home-wrap .block-home-gallery-preview .hmhcg-home-gallery-main {
    position: relative;
    display: block;
    height: 220px;
    overflow: hidden;
    background: #F2E4CA;
    text-decoration: none;
}
.home-wrap .block-home-gallery-preview .hmhcg-home-gallery-main img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .25s ease;
}
.home-wrap .block-home-gallery-preview .hmhcg-home-gallery-main-caption {
    position: absolute;
    display: block;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 12px 10px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
    color: #FFF4D3;
    background: linear-gradient(to top, rgba(40, 20, 13, .8), rgba(40, 20, 13, 0));
}
.home-wrap .block-home-gallery-preview .hmhcg-home-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 110px;
    gap: 10px;
    margin-top: 10px;
}
.home-wrap .block-home-gallery-preview .hmhcg-home-gallery-thumb {
    display: block;
    height: 100%;
    overflow: hidden;
    background: #F2E4CA;
    border-radius: 2px;
}
.home-wrap .block-home-gallery-preview .hmhcg-home-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}
.home-wrap .block-home-gallery-preview .hmhcg-home-gallery-thumb:hover img,
.home-wrap .block-home-gallery-preview .hmhcg-home-gallery-thumb:focus-visible img,
.home-wrap .block-home-gallery-preview .hmhcg-home-gallery-main:hover img,
.home-wrap .block-home-gallery-preview .hmhcg-home-gallery-main:focus-visible img {
    transform: scale(1.04);
}
.home-wrap .block-home-gallery-preview .hmhcg-home-gallery-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 13px;
    margin-top: 10px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    color: #8D1D0A;
    background: #FFF9ED;
    border: 1px solid #DFB575;
    text-decoration: none;
    transition: background-color .2s ease;
}
.home-wrap .block-home-gallery-preview .hmhcg-home-gallery-more:hover,
.home-wrap .block-home-gallery-preview .hmhcg-home-gallery-more:focus-visible {
    color: #721508;
    background: #F6E7CA;
}
.home-wrap .block-home-gallery-preview .hmhcg-home-gallery-empty {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    min-height: 470px;
    text-align: center;
    border: 1px dashed #C58A32;
    color: #59402E;
}
.home-wrap .block-home-gallery-preview .hmhcg-home-gallery-empty a { color: #8D1D0A; font-weight: 700; }
@media (max-width: 767px) {
    .home-wrap .block-home-gallery-preview .hmhcg-home-gallery-main { height: 200px; }
    .home-wrap .block-home-gallery-preview .hmhcg-home-gallery-thumbs { grid-auto-rows: 105px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-wrap .block-home-gallery-preview img { transition: none; }
}
