/*
  Styles for the "Gastro Akcije i Popusti" block.
  Plain, hand-written CSS (no build step) - uploaded as-is.
  Picked up automatically by the theme's existing style loader,
  which enqueues /public/block-{block-slug}.css for any block
  found in a page's content. No other theme file needs editing.

  Visually matches the site's existing "grid-4-col" card pattern
  (flat, full-bleed photo, no card shadow/border-radius, Poppins
  type, black/grey palette, green hover arrow, red discount badge)
  under its own class names, so it never depends on any other
  stylesheet being loaded on the page.
*/

.gastro-akcije {
   padding-top: 32px;
   padding-bottom: 58px;
   padding-bottom: clamp(58px, 5vw, 80px);
   overflow: hidden;
}

.gastro-akcije__container {
   width: 100%;
   max-width: 1381px;
   margin: 0 auto;
   padding: 0 20px;
}

.gastro-akcije__hdr {
   margin-bottom: 40px;
}

.gastro-akcije__hdr-h {
   font-family: "Poppins", sans-serif;
   font-weight: 600;
   line-height: 1.2;
   font-size: 1.5rem;
   font-size: clamp(1.5rem, 4.6vw, 3rem);
   width: fit-content;
   margin: 0 0 20px;
   color: #212121;
}

.gastro-akcije__hdr-text {
   font-family: "Poppins", sans-serif;
   font-weight: 400;
   line-height: 1.5;
   font-size: 1rem;
   font-size: clamp(1rem, 1.125vw, 1.125rem);
   color: #676767;
   max-width: 60ch;
}

.gastro-akcije__empty {
   font-family: "Poppins", sans-serif;
   font-weight: 400;
   line-height: 1.5;
   font-size: 0.9375rem;
   color: #8c8c8c;
   margin: 0;
}

.gastro-akcije__grid {
   display: grid;
   row-gap: 2.3vmax;
   column-gap: 1.667vmax;
   gap: 2.3vmax 1.667vmax;
}

@media screen and (min-width: 601px) {
   .gastro-akcije__grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (min-width: 810px) {
   .gastro-akcije__grid { grid-template-columns: repeat(3, 1fr); }
}

@media screen and (min-width: 1024px) {
   .gastro-akcije__grid { grid-template-columns: repeat(4, 1fr); }
}

.gastro-akcije__card {
   display: grid;
   grid-template-rows: auto auto 1fr;
}

.gastro-akcije__link {
   position: relative;
   width: 100%;
   display: flex;
   margin-bottom: 9px;
   overflow: hidden;
   height: 64vw;
   background: #f2f2f2;
}

@media screen and (min-width: 601px) {
   .gastro-akcije__link { height: 32vw; }
}

@media screen and (min-width: 810px) {
   .gastro-akcije__link { height: 27vw; }
}

@media screen and (min-width: 1024px) {
   .gastro-akcije__link { height: 21vw; }
}

@media screen and (min-width: 1440px) {
   .gastro-akcije__link { height: 20.4vw; }
}

.gastro-akcije__img {
   display: block;
   width: 100%;
   height: 100%;
   object-fit: cover;
   will-change: transform, filter;
   transition-property: transform, filter;
   transition-timing-function: ease-out;
   transition-duration: 0.3s;
}

@media (hover: hover) {
   .gastro-akcije__link:hover .gastro-akcije__img {
      transform: scale(1.04);
      filter: brightness(0.8);
   }
   .gastro-akcije__link:hover .gastro-akcije__arrow {
      opacity: 1;
      transform: scale(1);
   }
   .gastro-akcije__link:hover .gastro-akcije__discount {
      transform: scale(1.08);
      border-radius: 7px;
   }
}

.gastro-akcije__arrow {
   position: absolute;
   right: 16px;
   right: clamp(16px, 4.267vw, 24px);
   bottom: 16px;
   bottom: clamp(16px, 4.267vw, 24px);
   width: 15%;
   max-width: 52px;
   opacity: 1;
   transform: scale(1);
   transition-property: transform, opacity;
   transition-duration: 0.19s;
   transition-delay: 0.2s;
}

@media screen and (min-width: 768px) {
   .gastro-akcije__arrow {
      opacity: 0;
      transform: scale(0);
   }
}

.gastro-akcije__discount {
   position: absolute;
   left: 16px;
   left: clamp(16px, 4.267vw, 24px);
   top: 16px;
   top: clamp(16px, 4.267vw, 24px);
   border-radius: 8px;
   background-color: #e8252b;
   padding: 4px 11px 3px;
   color: #fff;
   font-family: "Poppins", sans-serif;
   font-weight: 400;
   font-size: 1rem;
   transition-property: transform, border-radius;
   transition-duration: 0.19s;
   transition-delay: 0.2s;
}

.gastro-akcije__title {
   font-family: "Poppins", sans-serif;
   font-weight: 600;
   line-height: 1.3;
   font-size: 1.125rem;
   font-size: clamp(1.125rem, 2.2vw, 1.5rem);
   display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   overflow: hidden;
   text-overflow: ellipsis;
   margin: 0 0 6px;
   color: #000;
}

.gastro-akcije__text {
   font-family: "Poppins", sans-serif;
   font-weight: 400;
   font-size: 1rem;
   font-size: clamp(1rem, 1.125vw, 1.125rem);
   line-height: 1.4em;
   max-height: calc(1.4em * 2);
   display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   overflow: hidden;
   text-overflow: ellipsis;
   margin: 0;
   color: #212121;
}
