@font-face {
  font-family: "Amaline";
  src: url(fonts/AmalineTrial-Regular.ttf.woff);
}

@font-face {
  font-family: "Above-the-Beyond";
  src: url(fonts/Above\ the\ Beyond\ Script.woff2);
}

:root {
  --header-color: #fafafa;
  --primary-color: #f9f6ee;
  --font-color: #090909;
  --accent-color: #45843e;
  --accent-hover: #6fc466;
  --muted-color: #4b4040;
  --border-color: #8a8a8a;
  --gradient: linear-gradient(to right, var(--accent-color), #96de5f);
  --main-font: "Above-the-Beyond", Arial, sans-serif;
  --body-font: Arial, Helvetica, sans-serif;
  --shadow: 0 4px 20px rgba(9, 9, 9, 0.08);
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--primary-color);
  color: var(--font-color);
  font-family: var(--body-font);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 70px;
  justify-content: space-between;
  display: flex;
  align-items: center;
  background-color: var(--header-color);
  border-bottom: 2px var(--border-color) solid;
}

.logo {
  font-size: 24px;
  font-family: var(--main-font);
  margin-left: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo a {
  text-decoration: none;
}

nav {
  margin-right: 1.5rem;
}

.border {
  padding: 0 7px;
  border-left: 1px var(--border-color) solid;
  border-right: 1px var(--border-color) solid;
}

nav ul {
  list-style-type: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

nav a {
  padding: 0.4em 1em;
  text-decoration: none;
  color: var(--font-color);
  font-size: 16px;
  border-radius: 8px;
  transition:
    background-color var(--transition),
    color var(--transition);
}

nav a:hover,
nav a.active {
  color: rgb(34, 34, 34);
  background-color: rgb(245, 240, 240);
}

nav a.cta {
  color: var(--header-color);
  background-color: var(--accent-color);
}

nav a.cta:hover {
  background-color: var(--accent-hover);
  color: var(--header-color);
}

/* Layout */

.container {
  max-width: 1224px;
  width: 90%;
  margin: auto;
  padding: 40px 0;
}

main {
  flex: 1;
}

.section-heading {
  font-family: var(--main-font);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--font-color);
}

.flex-container {
  display: flex;
  justify-content: center;
}

/* Hero */

#hero {
  width: 100%;
  min-height: 85vh;
  background: var(--primary-color);
  display: flex;
  align-items: center;
}

#hero .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
}

#hero .info {
  flex: 1;
  max-width: 520px;
}

#hero .info h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 2.3rem;
  font-weight: 700;
  font-family: "Times New Roman", Times, serif;
}

#hero .info .hero-accent {
  font-family: var(--main-font);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#hero .info a {
  font-size: 1.1rem;
  color: var(--muted-color);
  text-decoration: none;
  color: var(--muted-color);
}

#hero .info .button {
  text-decoration: none;
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--header-color);
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.75em 2em;
  margin-top: 1.5rem;
  transition:
    background-color var(--transition),
    transform var(--transition);
  justify-content: center;
}

#hero .info #gallery-link {
  background-color: var(--header-color);
  color: var(--border-color);
  transition:
    background-color var(--transition),
    transform var(--transition);
  border: 2px var(--border-color) solid;
  margin-right: 40px;
}

#hero .button:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

#hero .img {
  flex-shrink: 0;
}

.img .about-img {
  width: 280px;
  height: 340px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.space {
  margin-right: 44px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

/* Gallery */

.gallery-section {
  scroll-margin-top: 80px;
}

.gallery-section {
  padding-bottom: 4rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: #eee;
}

.gallery-item img {
  width: 100%;
  display: block;
  border-radius: 8px;
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
  filter: brightness(0.92);
}

.gallery-item::after {
  content: "View";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 9, 9, 0.45);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: 8px;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(9, 9, 9, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.lightbox-close:hover {
  opacity: 1;
}

/* About */

.about {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1.5rem 4rem;
}

.about h2 {
  font-family: var(--main-font);
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.about-info {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  align-items: flex-start;
}

.about-info .about-img {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.about-info p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted-color);
  margin-bottom: 1rem;
}

/* Contact */

.contact {
  max-width: 600px;
  margin: 4rem auto;
  padding: 0 1.5rem 4rem;
  text-align: center;
}

.contact h2 {
  font-family: var(--main-font);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact p {
  color: var(--muted-color);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-list li {
  background: var(--header-color);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}

.contact-list li:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.contact-list a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}

.contact-list a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Footer */

footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-color);
  border-top: 1px solid #e0e0e0;
  background: var(--header-color);
}

/* Responsive */

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  #hero .container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }

  #hero .info {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  header {
    height: auto;
    flex-direction: column;
    padding: 1rem 0;
    gap: 0.75rem;
  }

  .logo {
    margin-left: 0;
  }

  nav {
    margin-right: 0;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .about-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-info .about-img {
    width: 200px;
    height: 250px;
  }

  .img .about-img {
    width: 220px;
    height: 280px;
  }
}

@media (max-width: 480px) {
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    font-size: 14px;
    padding: 0.35em 0.75em;
  }
}
/*### The Required CSS Update
Add this code to the bottom of your `style.css` file. It configures the `.gallery-item` block as the absolute anchor point and cleanly reveals the floating tooltip upon cursor hover:

```css*/
/* Ensure the grid wrapper acts as a safe bounds system for positioning the tooltip */
.gallery-item {
  position: relative;
  display: inline-block;
}

/* Force standard overlay actions back to pointer-ready triggers */
.gallery-item img {
  pointer-events: auto;
  display: block;
  width: 100%;
}

/* Global design configurations for the floating tooltips */
.gallery-item .tooltip-text {
  visibility: hidden;
  position: absolute;
  bottom: 50px; /* Aligns the bubble inside/at the base edge of your picture */
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.85); /* Smooth translucent dark backing */
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-family: sans-serif;
  text-align: center;
  white-space: nowrap;
  z-index: 100;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  pointer-events: none; /* Stops the tooltip itself from intercepting your cursor paths */
}

/* Active triggering states */
.gallery-item:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}
