.icon-search:before, .search-form:before {
display: none;
}

.post-title {
    font-size: 24px; /* Change the value to your desired size */
}











/* Change the font size of the main menu */
.main-navigation ul li a {
    font-size: 30px; /* Adjust the size as needed */
}

/* Remove bold font from menu items on hover */
.main-navigation ul li:hover a,
.main-navigation ul li:focus a {
    font-weight: normal; /* Adjust font-weight to normal */
}


/* General Menu Style */
.main-navigation {
    display: block; /* Ensure the navigation is displayed as a block */
    position: relative; /* Allows for positioning adjustments */
    padding: 0; /* Remove padding */
    background: transparent; /* No background color */
}

/* Style the anchor tags */
.main-navigation ul li a {
    text-decoration: none; /* Remove underline from links */
    color: black; /* Set text color */
    font-size:32px; /* Adjust font size as needed */
    transition: color 0.3s; /* Smooth color transition on hover */
}

/* Adjust the submenu container to prevent scrolling */
.main-navigation ul ul {
    max-height: none; /* Prevent submenu height restriction */
    overflow: visible; /* Allow full display of submenu items without scroll */
}

/* Adjust the minimum width of the main header/menu */
.main-navigation {
    min-width: 160px; /* Adjust to your desired minimum width */
}

/* Adjust the minimum width of submenu items */
.main-navigation ul ul {
    min-width: 160px; /* Adjust to your desired minimum width for the submenu */
}







/* Remove bold font from the current menu item */
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
    font-weight: normal !important; /* Change to normal */
}

/* Ensure the main menu links are always normal font weight */
.main-navigation > ul > li > a {
    font-weight: normal !important; /* Ensure normal weight */
}

/* Prevent bold font on hover */
.main-navigation > ul > li:hover > a,
.main-navigation > ul > li:focus > a {
    font-weight: normal !important; /* Maintain normal weight on hover */
}


/* Change font size of submenu items */
.main-navigation ul ul li a {
    font-size: 14px; /* Adjust the size as needed */
}


/* Change submenu text to normal case */
.main-navigation ul ul li a {
    text-transform: none; /* Prevent text from being uppercase */
}






/*Only change the second menu item without affecting its sub menu*/


.dropdown-toggle,
.dropdown-menu-toggle {
    display: none !important;
}

.menu-item-has-children:hover > .sub-menu {
    display: block;
}


figure {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

figure figcaption {
  opacity: 0;
  transition: opacity 0.3s;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 0.5em 1em;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  pointer-events: none;
}

figure:hover figcaption {
  opacity: 1;
  pointer-events: auto;
}


/* Remove blur and overlay from gallery captions */
.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption)::before {
  display: none !important;
}

/* Remove dark background and make caption background transparent */
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
  background: transparent !important;
  filter: none !important;
  color: #fff; /* Or any color you prefer */
  opacity: 0;
  transition: opacity 0.3s;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  pointer-events: none;
  font-size: 1.1em;
  line-height: 1.4;
}

/* Show caption only on hover */
.wp-block-gallery.has-nested-images figure.wp-block-image:hover figcaption {
  opacity: 1;
  pointer-events: auto;
}



/* For Gutenberg block images */
.wp-block-image figcaption,
.wp-block-gallery .blocks-gallery-item figcaption,
figure.wp-block-image figcaption,
.wp-caption .wp-caption-text,
.gallery-caption,
figcaption {
  font-size: 0.8em !important;
  line-height: 1.2 !important;
}



.wp-block-group img {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: block;
}


.align-gallery-text {
  text-align: left; /* or left/right as needed */
}

.align-gallery-text img {
  display: inline-block;
  vertical-align: left;
}

.align-gallery-text p {
  display: inline-block;
  vertical-align: lefte;
}



/* Example: Center gallery and text within a group */
.wp-block-group {
  text-align: center;
}
.wp-block-group .wp-block-gallery {
  margin-left: auto;
  margin-right: auto;
}
.wp-block-group p {
  margin-left: auto;
  margin-right: auto;
}

/* Example: */
.image-caption:hover {
    font-style: italic;
}



figcaption.wp-element-caption:hover {
    font-style: italic;
}

figcaption.wp-element-caption {
    cursor: pointer !important;
}




/* Target the front-page gallery container */
.front-page .wp-block-gallery,
.front-page .huntt-gallery {
    display: flex;           /* Ensure it's a flex container */
    flex-wrap: wrap;         /* Allow images to wrap to the next row */
    gap: 10px;               /* Set both horizontal and vertical gaps to 10px */
}

/* Ensure each gallery image behaves properly */
.front-page .wp-block-gallery a,
.front-page .huntt-gallery a {
    flex: 1 1 calc(50% - 10px); /* Two images per row with gap accounted for */
    box-sizing: border-box;     /* Prevent extra spacing */
}
