/* Styles for design project pages */

/* Generic content classes - can be used site-wide */
.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

/* Combined class styles */
.page-title.content-heading {
  /* Remove all accent styling */
  color: #ffffff !important;
  background: none !important;
  border: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
  outline: none !important;
  text-decoration: none !important;
  border-bottom: none !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  margin-bottom: 1.5rem;
  --accent-color: transparent !important;
}

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

.content-heading {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.content-subheading {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
  color: #ffffff;
}

.content-text {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.content-image {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

/* Design-specific classes */
.design-project-container {
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 0.5rem;
}

.design-project-layout {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin: 0.5rem 0;
}

.design-preview-image {
  flex: 0 0 auto;
}

.design-project-description {
  flex: 1;
  min-width: 0;
}

.design-project-details {
  margin-top: 1.5rem;
}

.design-project-container svg {
  max-width: 100%;
  height: auto;
  max-height: 300px;
}

.design-project-title {
  color: #ffffff;
  padding-bottom: 0.5rem;
  padding-top: 0;
  margin-top: 0;
  border-bottom: none;
}

.design-section-heading {
  color: #ffffff;
}

.design-project-description,
.design-section-text {
  color: var(--text-primary, #F0F9FF);
}

/* Preview section specific styles */
.design-project-preview {
  margin: 0;
  padding: 0;
  overflow: hidden; /* Clearfix for floated images */
  font-size: 0.95rem;
}

.design-project-preview:after {
  content: "";
  display: table;
  clear: both;
}

/* Preview image styles */
.design-preview-img {
  width: 140px;
  height: auto;
  border-radius: 0.4rem;
}

/* Project card styles */
.design-project-card {
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.design-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.design-card-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-heading);
}

.design-project-card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}

.design-project-link {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.4rem 0.8rem;
  background-color: var(--accent-color, #3b82f6);
  color: rgb(34, 39, 117);
  border-radius: 0.4rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-size: 0.9rem;
}

.design-project-link:hover {
  background-color: rgba(59, 130, 246, 0.9);
  color: midnightblue;
}

/* Gallery Grid Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.gallery-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  padding: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
}

.gallery-item p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #e0e0e0;
  text-align: center;
}

.gallery-size-heading {
  color: #ffffff;
  font-size: 1.2rem;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .design-preview-img {
    float: none;
    display: block;
    margin: 0 auto 1rem;
  }
}
