/* Main Styles for Art by Tine Gallery Site */

/* Global Styles */
* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll; /* Force scrollbar to always be visible */
}

body {
  /* Modern system font stack that closely matches Montserrat */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  color: #333;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  padding-top: 70px; /* Add padding for fixed header */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  padding: 0 15px;
  flex: 0 0 auto;
}

.col-3 {
  width: 25%;
}

.col-4 {
  width: 33.33333%;
}

.col-6 {
  width: 50%;
}

.col-8 {
  width: 66.66667%;
}

.col-9 {
  width: 75%;
}

.col-12 {
  width: 100%;
}

/* Blog Post Layout Enhancements */
.blog-post .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.blog-post .blog-title-wrapper {
  width: 25%;
  padding-right: 20px;
}

.blog-post .blog-content {
  width: 50%;
  padding: 0 20px;
}

.blog-post .sidebar {
  width: 25%;
  padding-left: 20px;
}

/* Responsive behavior for blog layout */
@media (max-width: 768px) {
  .blog-post .row {
    padding: 0 15px;
  }
  
  .blog-post .blog-title-wrapper,
  .blog-post .blog-content,
  .blog-post .sidebar {
    width: 100%;
    padding: 0;
    margin-bottom: 2rem;
  }
  
  .blog-post .blog-title-wrapper {
    margin-bottom: 1rem;
  }
  
  .blog-post .sidebar {
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 700;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #707070;
}

/* Navigation Bar */
.navigation-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  background-color: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.navigation-bar.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}



.navigation-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-link {
  display: inline-block;
  text-decoration: none;
}

.brand-text {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
}

.navigation-menu {
  display: flex;
  gap: 30px;
}

.navigation-link {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 2px solid transparent; /* Add transparent border by default */
  display: inline-block; /* Ensure inline-block for proper border display */
}

.navigation-link:hover {
  border-bottom: 2px solid #333; /* Only change the color on hover */
}

.navigation-link.active {
  border-bottom: 2px solid #333; /* Also style active links for consistency */
}

.hamburger-button {
  display: none;
  padding: 10px;
  cursor: pointer;
}

.hamburger-icon {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #333;
  position: relative;
}

.hamburger-icon:before,
.hamburger-icon:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #333;
  left: 0;
}

.hamburger-icon:before {
  top: -6px;
}

.hamburger-icon:after {
  bottom: -6px;
}

/* Section Styles */
.section {
  padding: 60px 0;
}

/* Post Grid */
.post-grid {
  margin-bottom: 40px;
}

.post-grid-items {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 0;
}

.post-grid-item {
  margin-bottom: 20px;
}

.photo-link-block {
  color: #333;
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
  width: 100%;
  font-size: 13px;
  line-height: 17px;
  text-decoration: none;
  display: block;
  transition: transform .2s, opacity .2s;
}

.photo-link-block img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-link-block:hover {
  opacity: .8;
  color: #333;
  text-decoration: none;
  transform: scale(1.02);
}

.title {
  margin-top: 13px;
  margin-bottom: 33px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  font-size: 12px;
}

/* Individual Post Page */
.photo-row {
  display: flex;
}

/* Blog Styles */
.blog-list-item {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  min-height: 100px;
}

.blog-link {
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
}

.blog-link:hover {
  text-decoration: none;
}

.blog-title {
  letter-spacing: 0;
  margin-bottom: 5px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  font-weight: 400;
}

.blog-info-text {
  color: #ccc;
  margin-bottom: 20px;
  font-size: 12px;
  line-height: 18px;
}

.blog-content {
  line-height: 1.6;
  overflow: hidden;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.blog-featured-image {
  margin: 2rem 0;
}

.blog-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.sidebar-title {
  margin-bottom: 29px;
  font-size: 20px;
  letter-spacing: 0;
  font-weight: 500;
}

.sidebar-divider {
  border-top: 1px solid #ccc;
  height: 1px;
  margin-top: 25px;
  margin-bottom: 25px;
}

.small-blog-title {
  margin-bottom: 0;
  margin-top: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #333;
}

.small-blog-link {
  color: #333;
  margin-bottom: 21px;
  display: block;
  text-decoration: none;
}

.small-blog-link:hover {
  text-decoration: none;
  opacity: 0.8;
}

.small-list {
  text-align: right;
}

.tag-list,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tag-section {
  margin-bottom: 2rem;
}

.blog-header {
  margin-bottom: 2rem;
}

.all-posts-link {
  display: inline-block;
  margin-top: 1rem;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.all-posts-link:hover {
  opacity: 0.7;
}

.tag {
  padding: 0.25rem 0.75rem;
  background-color: #f5f5f5;
  border-radius: 30px;
  font-size: 0.8rem;
  text-decoration: none;
  color: #333;
}

.tag:hover {
  background-color: #e5e5e5;
}

.rich-text h1, .rich-text h2, .rich-text h3, .rich-text h4, .rich-text h5, .rich-text h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.rich-text p {
  margin-bottom: 1em;
}

.rich-text ul, .rich-text ol {
  margin-bottom: 1em;
  padding-left: 1.5em;
}

.rich-text blockquote {
  border-left: 3px solid #ccc;
  padding-left: 1em;
  font-style: italic;
  margin-left: 0;
  color: #666;
}

/* Enhanced image handling for all rich text content */
.rich-text img,
.rich-text-image,
.blog-content img,
.blog-content figure img,
.blog-content p img {
  max-width: 100% !important; /* Override any inline width */
  width: auto !important;     /* Let images size naturally up to max-width */
  height: auto !important;    /* Maintain aspect ratio */
  display: block;             /* Avoid inline spacing issues */
  margin: 1.5rem auto;        /* Center images with margin */
  border-radius: 4px;         /* Consistent with site design */
  box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* Subtle depth */
  object-fit: contain;        /* Ensure no cropping */
}

/* Images that are too big get constrained to column width with full width */
.blog-content .rich-text img[width="1200"],
.blog-content .rich-text img[width="1000"],
.blog-content .rich-text img[width="800"],
.blog-content .rich-text img[width="600"],
.blog-content .rich-text img[width^="1"] {
  width: 100% !important;
}

/* Make sure images don't overflow their containers on small screens */
.rich-text figure,
.rich-text p,
.blog-content figure,
.blog-content p {
  max-width: 100% !important;
  overflow: hidden;
}

/* Style figure captions */
.rich-text figcaption {
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
  color: #666;
  margin-top: 0.5rem;
}
.padding-bottom-6 {
  margin-bottom: 4rem;
}
.photo-page-title {
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 700;
}

.photo-page-title.center {
  text-align: center;
  margin-bottom: 30px;
}

.photo-info-text {
  color: #777;
  margin-bottom: 20px;
  font-size: 14px;
}

.description-text {
  margin-bottom: 30px;
}

.content-image img {
  width: 100%;
  height: auto;
  display: block;
}

.all-images {
  margin-top: 60px;
}

.gallery-wrapper {
  margin-top: 30px;
}

.gallery-items {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 0;
}

.gallery-item {
  margin-bottom: 20px;
}

/* Image container for preserving aspect ratio */
.image-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%; 
  overflow: hidden;
 
  border-radius: 4px;
  margin-bottom: 10px;
}

.image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; 
}

/* Optional: Add smooth transition for image hover effects */
.photo-link-block .image-container img {
  transition: transform 0.3s ease;
}

.photo-link-block:hover .image-container img {
  transform: scale(1.03);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 15px;
  background-color: #f5f5f5;
  border-radius: 4px;
  color: #333;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination-link:hover {
  background-color: #e0e0e0;
}

.pagination-link.current {
  background-color: #333;
  color: #fff;
}

.pagination-link.prev,
.pagination-link.next {
  font-weight: 500;
}

/* Footer */
.footer {
  padding: 40px 0;
  background-color: #f9f9f9;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.social-icon-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.footer-text {
  font-size: 12px;
  color: #555; /* Darker color for better contrast */
  font-weight: 500; /* Slightly bolder for better readability */
}

/* Responsive Styles */
@media (max-width: 991px) {
  .col-4, .col-8 {
    width: 50%;
  }
  
  .photo-row {
    flex-direction: column;
  }
  
  .photo-row .col-4,
  .photo-row .col-8 {
    width: 100%;
  }
  
  .photo-row .col-4 {
    margin-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .navigation-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
  }
  
  .navigation-menu.active {
    display: flex;
  }
  
  /* Remove underline/border on mobile navigation links */
  .navigation-link {
    border-bottom: none;
    padding: 15px 0;
    width: 100%;
    text-align: center;
  }
  
  .navigation-link:hover,
  .navigation-link.active {
    border-bottom: none;
  }
  
  .hamburger-button {
    display: block;
  }
  
  .col-4, .col-8 {
    width: 100%;
  }
  
  .photo-row {
    flex-direction: column;
  }
}

/* Page Transitions */
.fade-enter {
  opacity: 0;
}

.fade-enter-active {
  opacity: 1;
  transition: opacity 300ms ease;
}

.fade-exit {
  opacity: 1;
}

.fade-exit-active {
  opacity: 0;
  transition: opacity 300ms ease;
}
