
.home-block{
    position: relative;
    text-align: center; 
    width:100%; overflow: hidden; padding: 0px;
    border: 0px solid #555;
}
.home-block img {
  max-width: 100%;
  
  -moz-transition: all 0.3s;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}
.home-block:hover img {
  -moz-transform: scale(1.4);
  -webkit-transform: scale(1.4);
  transform: scale(1.4);
}

.home-category-card .home-block:hover img {
  -moz-transform: none;
  -webkit-transform: none;
  transform: none;
}

.home-category-card .home-block img {
    transform-origin: center;
    box-shadow: 0 14px 34px rgba(27, 39, 51, .18);
    scale: 1;
    transition:
        scale var(--category-zoom-duration) var(--category-zoom-easing),
        opacity var(--home-category-fade-duration, 800ms) ease;
}

.home-category-card:hover .home-block img {
    scale: 1.08;
}

.home-block .over-txt{ 
    position:absolute; left:0px; top:0px; width:100%; height:100%; z-index: 0;
}
.home-block .over-txt a:hover{ text-decoration: none; }

.home-block .main-title{
    width:100%; text-align: center; color:#eee; font-size: 12px; padding: 5px 0px 5px 0px;
    /*text-shadow: -0.2vw 0.2vw #333;*/
}
.home-block .main-flag{
    padding:3px 10px;
    text-align: right; color:#ddd;  font-size: 12px; font-style: italic;
   /* text-shadow: -0.1vw 0.1vw #555;*/
}
.home-block .txt{
    font-size: 12px; color:#555; line-height: 20px; border-bottom: 1px #999 solid;  padding:4px 25px ;
}


/* Homepage category gallery (below the main slideshow). */
.home-categories {
    padding: 0 5vw;
}

.home-categories-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) repeat(2, minmax(0, 1fr));
    gap: 1vw;
    align-items: stretch;
}


/** animation of zoom */
.home-category-card {
    --category-zoom-duration: 1s;
    --category-zoom-easing: cubic-bezier(.2, .8, .2, 1);
    min-width: 0;
    overflow: hidden;
    border-radius: 0px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(27, 39, 51, .12);
    transition: transform .2s ease, box-shadow .2s ease;
}

.home-category-card:hover {
    transform: none;
    box-shadow: 0 14px 34px rgba(27, 39, 51, .18);
}

.home-category-card .home-block,
.home-category-card .home-block > .col-12 {
    height: 100%;
}

.home-category-card .home-category-slider {
    position: relative;
    overflow: hidden;
    width: 100% !important;
    aspect-ratio: 2 / 1;
}

.home-category-card .home-category-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity var(--home-category-fade-duration, 800ms) ease;
}

.home-category-card .home-category-slide.is-active { opacity: 1; }
.home-category-card .home-category-slide[hidden] { display: none; }

.home-category-card--featured {
    grid-row: span 2;
}

.home-category-card--featured .home-category-slider {
    height: 100% !important;
    min-height: 100%;
}

.home-category-card .over-txt {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 38px 16px 16px;
    color: #fff;
    background: linear-gradient(transparent, rgba(2, 2, 2, .72));
}

.home-category-card .main-title {
    font-size: clamp(16px, 1.5vw, 24px);
    font-weight: 500;
    letter-spacing: .04em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}

.home-category-card--featured .main-title {
    align-self: flex-end;
    font-size: clamp(22px, 2vw, 34px);
}
@media (min-width: 1200px) {
    .home-categories-grid {
        grid-auto-rows: clamp(150px, 10vw, 220px);
    }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
    .home-categories-grid {
        grid-auto-rows: 12vw;
    }
}

@media (max-width: 768px) {
    .home-category-card .main-title {
        font-weight: 900;
        letter-spacing: .1em;
    }
    .home-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2vw;
    }
    
    .home-category-card--featured { grid-column: 1 / -1; grid-row: auto; }
    .home-category-card--featured .home-category-slider { aspect-ratio: 3 / 1; }
    .home-category-card .home-category-slider { aspect-ratio: 2 / 1; }
}
@media (min-width: 768px) {
    .home-categories { padding: 0 8vw; }
}
/************************************/
