@media only screen and (max-width: 1024px) {
    .hfe-nav-menu__breakpoint-tablet .hfe-active-menu.hfe-active-menu-full-width + .hfe-nav-menu__layout-horizontal, .hfe-nav-menu__breakpoint-tablet .hfe-active-menu.hfe-active-menu-full-width + .hfe-nav-menu__layout-vertical {
        margin-top: 25px;
    }
    
    .custom-post-grid {
        flex-direction: column;
    }
}

.homepage-welcome-title span {
	text-transform: uppercase;
}

.homepage-welcome-title span strong {
	color: var(--e-global-color-accent);
}

.custom-post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0;
  list-style: none;
  margin: 0;
}

.custom-post-grid li {
  flex: 0 0 48%;
  box-sizing: border-box;
  margin: 0;
}

.custom-post-grid li {
  cursor: pointer;
}

/* Flexbox layout for each list item */
.custom-post-grid li .body-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Thumbnail container */
.custom-post-grid .bottom-left {
  flex-shrink: 0;
}

.custom-post-grid .bottom-left img.service-icon {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 6px;
	transition: all 300ms linear;
}

.custom-post-grid li:hover img.service-icon {
  margin-top: 15px;
}

.custom-post-grid h4 a {
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-weight: 100;
	color: var(--e-global-color-primary);
	text-decoration: none;
}

.custom-post-grid  .entry-content {
	font-weight: 300;
}

/* Content on the right */
.custom-post-grid .bottom-right {
  flex-grow: 1;
}

.custom-post-grid .bottom-right .entry-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: bold;
}

.custom-post-grid .entry-content {
  font-size: 14px;
  margin-bottom: 10px;
  color: #444;
}

.custom-post-grid .entry-readmore a.btn-more {
    font-family: var(--e-global-typography-secondary-font-family), Sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-transform: capitalize;
    color: var(--e-global-color-primary);
    position: relative;
    display: flex;
    align-items: center;
}

.css-arrow {
    display: inline-block;
    width: 55px;
    height: 2px;
    background-color: var(--e-global-color-primary);
    position: relative;
    transition: all 250ms linear 0s;
    vertical-align: middle;
	margin-left: 15px;
}

.custom-post-grid li:hover .css-arrow {
    display: inline-block;
    width: 25px;
    height: 2px;
    background-color: var(--e-global-color-primary);
    position: relative;
    transition: all 250ms linear 0s;
    vertical-align: middle;
	margin-left: 15px;
}

.custom-post-grid .entry-readmore a.btn-more .css-arrow:before {
    content: "";
    position: absolute;
    width: 10px;
    height: 2px;
    background-color: var(--e-global-color-primary);
    top: 3px;
    right: -3px;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    transition: all 250ms linear 0s;
}

.custom-post-grid .entry-readmore a.btn-more .css-arrow:after {
    content: "";
    position: absolute;
    width: 10px;
    height: 2px;
    background-color: var(--e-global-color-primary);
    top: -3px;
    right: -3px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    transition: all 250ms linear 0s;
}

/***
* FOOTER
*/
.tvm-working-hours-footer li .elementor-icon-list-text em {
	display: block !important;
}
.tvm-footer-dog img {
	display: inline !important;
}

/***
* BREADCRUMBS
*/
.hfe-breadcrumbs a {
	text-decoration: none !important;
}
.hfe-breadcrumbs a:hover {
	text-decoration: underline !important;
	color: white !important;
}

.hfe-breadcrumbs .hfe-breadcrumbs-item .hfe-breadcrumbs-text {
	text-shadow: 3px 1px 3px #000000 !important;
}
/***
* Gallery
*/
/* === 4-column gallery with gaps and white borders === */
#tvm-photo-gallery .elementor-image-gallery .gallery {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin: 0;
}

/* Reset WP/Elementor gallery item defaults (floats, widths, margins) */
#tvm-photo-gallery .elementor-image-gallery .gallery-item {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}

/* Remove any injected <br> clearers */
#tvm-photo-gallery .elementor-image-gallery .gallery br {
  display: none !important;
}

/* Make the image fill its grid cell naturally */
#tvm-photo-gallery .elementor-image-gallery .gallery-icon,
#tvm-photo-gallery .elementor-image-gallery .gallery-icon a {
  display: block;
  margin: 0;
}

#tvm-photo-gallery .elementor-image-gallery .gallery-icon img {
	display: block;
	width: 100%;
	height: 350px;
	box-sizing: border-box;
	object-fit: cover;
	background-color: #FFFFFF;
    margin: 0px -70px 0px 0px;
    border-style: solid;
    border-width: 10px 10px 10px 10px;
    border-color: #FFFFFF;
    box-shadow: 0px 0px 16px 0px rgba(39, 48, 75, 0.15);
	transition: all linear 250ms;
}
#tvm-photo-gallery .elementor-image-gallery .gallery-icon a:hover img {
	border-color: var(--e-global-color-primary);
}

@media (min-width: 768px) {
    #tvm-photo-gallery .elementor-image-gallery .gallery-columns-4 .gallery-item {
        max-width: 100%;
    }
}
