/* Styles that aren't set in a theme.json or pattern CSS  */

/* Basic Reset */
*, *::before, *::after {
    box-sizing: border-box;
    /* margin: 0; */
    padding: 0;
}

/* Prevents horizontal scrolling issues */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Consistent font sizing */
body {
    /* font-size: 16px;
    line-height: 1.5; */
}

/* Images and embeds responsive by default */
img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Links inherit colors */
a {
    text-decoration: none;
    color: inherit;
}

/* Ensure buttons and inputs are styled properly */
button, input, select, textarea {
    font: inherit;
}


/* Default WP styles */

.wp-block-post-content {
    /* background: #f4f4f7; */
    /* background: #d6d6d6; */
    /* background: pink; */
    /* padding: 10px 20px; */
}

.wp-block-column {
    /* background: white;
    padding: 25px;
    border: 1px solid #d6d4d4; */
}

.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content {
    /* color: white; */
}

/* Theme styles */

.ffc-post-item {
    position: relative;
    overflow: hidden; /* Ensures content doesn't overflow */
}

.ffc-post-item img {
    width: 100%;
    display: block;
    width: 100%; /* Make images responsive */
    height: 300px; /* Set a fixed height, adjust as needed */
    object-fit: cover; /* This will crop images to fit the defined height while maintaining the aspect ratio */
    object-position: center; /* Optional: Ensures the focal point is centered if cropping */
}

/* Default styles for mobile: overlay below the image and no animation */
.ffc-post-overlay {
    position: relative; /* Position it below the image on mobile */
    margin-top: 10px; /* Space between the image and the overlay */
    background: white;
    padding: 20px;
}

.ffc-post-overlay h2,
.ffc-post-overlay p,
.ffc-post-overlay a  {
    margin: 0;
    color: rgb(0, 0, 0);
}

/* Desktop and larger screens: overlay slides up over the image */
@media (min-width: 768px) {
    .ffc-post-overlay {
        position: absolute; /* Position it at the bottom of the image */
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.5); /* Optional background */
        color: white; /* Text color */
        transform: translateY(100%); /* Hidden below the image */
        transition: transform 0.3s ease-in-out; /* Animation effect */
    }

    .ffc-post-item:hover .ffc-post-overlay {
        transform: translateY(0); /* Slide up on hover */
    }

    /* Make sure the parent is positioned relatively to allow the absolute positioning of the overlay */
    .ffc-post-item {
        position: relative;
    }

    .ffc-post-overlay h2,
    .ffc-post-overlay p,
    .ffc-post-overlay a  {
        margin: 0;
        color: rgb(255, 255, 255);
    }

}

.ffc-post-item .wp-block-post-date {
    margin-block-start: 0;
}


/* .footer-socials {
  margin-top: 4rem;
  font-size: 0.95rem;
} */

.footer-heading {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-social-links {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.footer-social-links li {
  margin-right: 0.75rem;
  display:inline-block;
}

.footer-social-links a {
  display: flex;
  gap: 0.25rem;
  align-items: flex-start;
  text-decoration: none;
}

.footer-social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.footer-social-links a:hover {
  text-decoration: underline;
}
