/* Hide author profile on Safari for iPhone */
@media screen and (max-width: 768px) and (-webkit-min-device-pixel-ratio:0) {
    @supports (-webkit-overflow-scrolling: touch) {
      .author-profile {
        display: none;
      }
    }
  }

figure {
    margin-bottom: 0; /* Remove default margin if any */
}

figure img {
    margin-bottom: 0; /* Ensure no margin below the image */
}

figure figcaption {
    margin-top: 5px; /* Adjust to your preferred spacing */
    margin-bottom: 20px; /* Adjust this value to add more space under the caption */
}
 
 
/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive columns */
  gap: 20px; /* Space between items */
}

/* Project Item Styling */
.project-item {
  text-align: center;
}

/* Image Container */
.image-effect-container {
  position: relative;
  width: 100%;
  padding-bottom: 66.66%; /* Aspect ratio 3:2 */
  overflow: hidden;
  border-radius: 5px;
  display: block;
}

/* Image Styling */
.image-effect-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure the image covers the container without distortion */
  transition: transform 0.3s ease-in-out; /* Smooth transition */
}

/* Hover Effect */
.image-effect-container:hover img {
  transform: scale(1.1); /* Zoom-in effect */
}

/* Overlay for Text */
.image-effect-container .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.image-effect-container:hover .overlay {
  opacity: 1;
}

/* Project Title and Excerpt */
.project-item h3 {
  margin: 10px 0 5px 0;
}

.project-item p {
  margin: 0;
}


.contact-form {
  max-width: 600px;
  margin: 2em auto;
  padding: 1em;
  background-color: #f9f9f9;
  border-radius: 5px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.contact-form label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5em;
  margin-bottom: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 1em;
}

.contact-form button {
  display: inline-block;
  padding: 0.75em 1.5em;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #555;
}

#sidebar .author__avatar {
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 50%; /* Optional */
  max-width: 200px;  /* You can increase this value */
  width: 100%; /* Force the image to take full width */
  height: auto; /* Maintain aspect ratio */
}

#sidebar .author__avatar img {
  width: 300px; /* Make sure this is the desired size */
  height: auto; /* Maintain aspect ratio */
}

