/* === CUSTOM GALLERY OVERRIDES === */

/*
  Target: Make gallery items 2 columns from 480px up to where they are already 2 columns
  (which is 767px due to the theme's "Max Wide Mobile Layout").
  This rule specifically targets the 480px to 599px range for 2 columns,
  and reinforces the 600px to 767px range which is already 2 columns.
*/
@media only screen and (min-width: 992px) and (max-width: 1200px) { /* Adjust 480px as needed */
    .gallery-area .gallery-items.colums-2 .pf-item,
    .gallery-area .gallery-items.colums-3 .pf-item,
    .gallery-area .gallery-items.colums-4 .pf-item,
    .gallery-area .gallery-items.colums-5 .pf-item  {
        width: 25% !important; /* 2 columns */ 
    }
}

/*
  Target: Make gallery items 1 column only on very narrow screens (below 480px).
  This will override the theme's (max-width: 767px) { width: 100%; } for the range
  480px-767px (which is handled by the rule above).
  And it ensures that below 480px, it is indeed 1 column.
*/
@media only screen and (max-width: 370px) { /* Adjust 479px (one less than above min-width) as needed */
    .gallery-area .gallery-items.colums-2 .pf-item ,
    .gallery-area .gallery-items.colums-3 .pf-item ,
    .gallery-area .gallery-items.colums-4 .pf-item ,
    .gallery-area .gallery-items.colums-5 .pf-item   {
        width: 100%; /* 2 columns */
    }
}
/* Default/Mobile-first font size */
.info h5 {
    font-size: 12px; /* Adjust this to your smallest desired size */
    /* You might want to add a line-height for better readability too */
    line-height: 1.2;
}
@media (max-width: 370px) {
    .info h5 {
        font-size: 18px; /* A bit larger */
    }
}

/* For tablets and small desktops (e.g., screen width 768px and up) */
@media (min-width: 450px) {
    .info h5 {
        font-size: 16px; /* A bit larger */
    }
}

/* For tablets and small desktops (e.g., screen width 768px and up) */
@media (min-width: 768px) {
    .info h5 {
        font-size: 17px; /* A bit larger */
    }
}

/* For medium desktops (e.g., screen width 992px and up) */
@media (min-width: 992px) {
    .info h5 {
        font-size: 17px; /* Even larger */
    }
}

/* For large desktops (e.g., screen width 1200px and up) */
@media (min-width: 1200px) {
    .info h5 {
        font-size: 17px; /* Largest size */
    }
}
#contacts-phones h5{
    color: white;
}

/* Optional: Style the container for the map */
.map-container {
    width: 80%; /* Adjust as needed */
    max-width: 800px; /* Set a max-width for larger screens */
    height: 400px; /* Adjust height as needed or let iframe control it */
    margin: 20px auto; /* Center the map container */
    border: 1px solid #ccc;
}

/* Make the iframe responsive within its container */
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0; /* Remove default iframe border if you have a container border */
}

.map-responsive-wrapper {
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
    /* For other aspect ratios: height / width * 100% */
    /* e.g., for 4:3 -> 3 / 4 * 100 = 75% */
    position: relative;
    height: 0;
    margin: 20px 0; /* Optional margin */
}

.map-responsive-wrapper iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border: 0; /* Remove iframe border */
}

/* 1. Equal Height for .f-item within columns */
.f-items .row > [class*="col-"].item > .f-item {
    height: 100%;
    /* If you want the content within f-item to be managed by flex too,
       you might add display: flex; flex-direction: column; here.
       For now, just height: 100%; to make the boxes themselves equal. */
    padding: 15px;
    box-sizing: border-box; /* Important if you have padding/borders */
}

/* Styles for the .contact-info-block to center its content */
.contact-info-block {
    margin-bottom: 20px; /* Space below this block */
    padding: 10px;

    /* --- Method 1: Center .icon-and-phones using flexbox on .contact-info-block --- */
    display: flex;
    justify-content: center; /* Horizontally centers .icon-and-phones */
    /* align-items: center; */ /* Uncomment if .contact-info-block has a fixed height and you want vertical centering too */

    /* --- Method 2: Center .icon-and-phones using text-align (if .icon-and-phones is inline-flex) --- */
    /* text-align: center; */ /* Use this if .icon-and-phones is display: inline-flex */
}

.contact-info-block .icon-and-phones {
    display: flex;           /* Flex layout for side-by-side alignment */
    align-items: center;     /* Vertically center items */
    gap: 15px;               /* Spacing between image and text block */
}

footer .f-items img {
    margin-bottom: 0;        /* No extra bottom space below image */
    width: 40px;             /* Optional: Adjust icon size */
    height: auto;            /* Maintain aspect ratio */
}

.contact-info-block .phone-numbers {
    display: flex;
    flex-direction: column;  /* Stack phone numbers vertically */
    align-items: flex-start; /* Left-align text inside the block */
    text-align: left;
}

.contact-info-block .phone-numbers span {
    font-size: 18px;         /* Adjust size as needed */
    line-height: 1.4;
}
/* Styling for the image */
.contact-info-block img {
    max-width: 35px; /* Adjust size as needed */
    height: auto;    /* Maintain aspect ratio */
    /* No specific vertical alignment needed for the img itself,
       as its parent (.icon-and-phones) with 'align-items: center' handles it. */
}
/* Demo styles for the row, remove if not needed */
.f-items .row {
    padding: 10px 0;
}

/* Responsive map (optional, but good practice) */
.map-responsive-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.map-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Adjusting iframe height since you had fixed height before */
#second-column .f-item .map-responsive-wrapper {
    padding-top: 0; /* Override aspect ratio if fixed height is desired */
    height: 400px; /* Your original height */
}
#second-column .f-item .map-responsive-wrapper iframe{
    height: 400px; /* Your original height */
    width: 100%; /* Make it responsive width-wise */
}


/* Ensure h4, h5, p margins are reasonable */
.f-item h4, .f-item h5, .f-item p {
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.f-item p {
    font-size: 1rem; /* Example */
    margin-bottom: 1rem;
}

/*
  This targets the first col-lg-6 child of a .row that is inside a .tab-pane.
  This is typically where your images are located based on the HTML structure.
*/
.tab-pane .row > .col-lg-6:first-child {
    display: flex;           /* Enable flexbox for easy centering */
    justify-content: center; /* Center the .thumb div horizontally */
    align-items: center;     /* Center the .thumb div vertically (optional, but good for consistency) */
}

/*
  This styles the .thumb container itself.
  It's not strictly necessary for centering if the parent col-lg-6 handles it,
  but it ensures the image has a well-defined container.
*/
.tab-pane .thumb {
    /* You can add padding or borders here if needed */
    /* display: inline-block; /* Or block, depending on desired layout within flex parent */
}

/*
  However, for "same size" usually fixed dimensions are implied.
*/

/* Styling for the language button */
.lang-button {
    display: inline-block;
    padding: 5px 10px;
    color: #000; /* Black text color */
    background-color: transparent; /* No background */
    text-decoration: none; /* Remove underline */
    font-weight: bold;
    font-size: 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.tab-pane .thumb img {
    width: 350px;        /* --- SET YOUR DESIRED FIXED WIDTH HERE --- */
    height: 250px;       /* --- SET YOUR DESIRED FIXED HEIGHT HERE --- */
    object-fit: cover;   /* This is key:
                            - cover: Fills the dimensions, cropping if necessary to maintain aspect ratio.
                            - contain: Fits the entire image within dimensions, may leave empty space.
                            - fill: Stretches image to fill dimensions, may distort aspect ratio.
                            - none: Displays image at original size, may be clipped.
                            - scale-down: Displays as 'contain' if image is larger than box, else as 'none'.
                         */
    display: block;      /* Removes any extra space below the image if it were inline */
    /* Optional: Add a border or box-shadow if you like */
    /* border: 1px solid #ddd; */
    /* box-shadow: 0 4px 8px rgba(0,0,0,0.1); */
}
.top-bar-area .info li {
  display: flex;
  align-items: center;
  font-family: var(--font-default);
  font-weight: 400;
  color: var(--color-paragraph);
  font-size: 16px;
  line-height: 20px;
}

.top-bar-area .info li i {
  margin-right: 10px;
  font-size: 20px;
  color: var(--color-primary);
}

.top-bar-area .info li span a {
  color: var(--color-paragraph);
  font-weight: 400;
  text-decoration: none;
}
.top-bar-area .info li a {
padding: 0px;
  color: var(--color-paragraph);
  font-weight: 400;
  text-decoration: none;
}
.top-bar-area .info li span a:hover {
  color: var(--color-primary);
}
.top-entry-area .item h5 a {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
}
.phone-numbers span a{
    text-decoration: none;
    font-weight: 400;
}

.top-entry-area .item a {
    text-transform: lowercase;
    display: inline-block;
    margin-top: 0px;
    font-weight: 400;
    color: inherit;
}

.navbar-brand > img {
	margin: 0;
	padding-top: 5px;
    padding-bottom: 5px;
	display: block;
}

footer .f-item .opening-info li .working-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer .f-item .opening-info li .note {
  font-size: 12px;
  color: red;
  margin-top: 5px;
}
@media (max-width: 767px) {
    .banner-area .carousel-item {
    position: relative;
    min-height: 500px !important; /* Set desired height */
    max-height: 500px !important; /* Set desired height */
  }

  .banner-area .carousel-item .slider-thumb {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
  }

  .banner-area .carousel-item .box-table {
    position: relative;
    z-index: 2;
  }
    .banner-area .carousel-item .box-cell div {
    min-height: 500px !important; /* Set desired height */
  }
}